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