コード例 #1
0
        async void HandleDeviceNotRegisteredNotificationFired(object sender, NotificationAlertEventArgs e)
        {
            var didUserAccept = await DisplayAlert(e.TitleText, e.MessageText, e.AcceptText, e.CancelText);

            if (didUserAccept)
            {
                DependencyService.Get <IPushNotificationServices>()?.RegisterDeviceForPushNotifications();
            }
        }
コード例 #2
0
        async void HandleOpenSettingsNotificationFired(object sender, NotificationAlertEventArgs e)
        {
            var didUserAccept = await DisplayAlert(e.TitleText, e.MessageText, e.AcceptText, e.CancelText);

            if (didUserAccept)
            {
                DependencyService.Get <IPushNotificationServices>()?.OpenPushNotificationSettings();
            }
        }
コード例 #3
0
 async void HandleSuccessNotificationFired(object sender, NotificationAlertEventArgs e)
 {
     await DisplayAlert(e.TitleText, e.MessageText, e.CancelText);
 }