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

Handling Silent Remote Notifications

$
0
0

Hi there!

I'm currently trying to implement silent remote notifications in my Xamarin.iOS app. I use uniqush-push (http://uniqush.org/) for sending push messages to my iOS app. Receiving and handling messages while my app is running in foreground works fine, but I have some troubles with background processing.

I've added both "remote-notification" and "fetch" BackgroundModes and have overwritten the DidReceiveRemoteNotification method. The message gets the "content-available" flag set to 1. With message text or sound enabled, I see/hear the message correctly reaching the device - but the app is not waking up. There are console outputs in (I think) all AppDelegate methods (WillEnterForeground, FinishedLaunching, DidReceiveRemoteNotification,...) but there's nothing written to the log.

Has anyone already worked with notification handling in background with Xamarin.iOS?

Thanks & best greetings from Vienna, Austria Bernhard

PS: The received push message looks like that (which should be fine as far as I see): { aps = { alert = { body = "This is a test"; }; "content-available" = 1; }; }


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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