OneSignal-Xamarin-SDK
OneSignal-Xamarin-SDK copied to clipboard
[question]: Updating from 3.x to 4.x RegisterForPushNotifications() method
How can we help?
I'm updating to 4.x and wondering whether PromptForPushNotificationsWithUserResponse()
is equivalent for old RegisterForPushNotifications()
. Upgrade docs doesn't mention it.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
@MihaMarkic
Did you find if this was true?
OneSignal.Current.RegisterForPushNotifications()
is now
var result = await OneSignal.Default.PromptForPushNotificationsWithUserResponse();
@robfrancis I think so. And instead of using
OneSignal.Current.StartInit(...).HandleNotificationOpened(Globals.HandleNotificationOpened)
I'm using
OneSignal.Default.NotificationOpened += Globals.HandleNotificationOpened;