Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 3
0
 async void HandleSuccessNotificationFired(object sender, NotificationAlertEventArgs e)
 {
     await DisplayAlert(e.TitleText, e.MessageText, e.CancelText);
 }