Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Saving Data From Silent Push Notification While App is Closed Not Working

$
0
0

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.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>