Pushwoosh/pushwoosh-xamarin

How detect when user open notification? (Android and iOS)

Closed this issue · 1 comments

How detect when user open notification? (Android and iOS)
wfhm commented

Hi,

For Android you can use doOnMessageReceive method:

https://github.com/Pushwoosh/pushwoosh-xamarin/blob/master/Samples/Droid/PushwooshSample/MainActivity.cs#L146

For iOS add the following method to your AppDelegate class and handle a push open event in it:

[Export("onPushAccepted:withNotification:onStart:")]
public void OnPushAccepted(PushNotificationManager pushManager, NSDictionary pushNotification, bool onStart) {
}