Hello Xamarin,
I am trying to save a data that comes with silent push notification payload. It works well when the app is running but not when the app is closed. My code looks like this:
public override void DidReceiveRemoteNotification (UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler)
{
//THIS WHERE I SAVE THE DATA FROM THE PAYLOAD
...
completionHandler (UIBackgroundFetchResult.NewData);
}
Is it really possible to save a data (to db like SQLite) from the push notification payload even when the app is closed(swiped to exit)? This is a critical requirement to my project. Hope you can help me.