Пример #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);
 }