Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Xamarin.Forms on IOS - DidReceiveRemoteNotification doesn't execute code

$
0
0

In my Xamarin application where I have implemented push-notifications, I have some executeable code in the DidReceiveRemoteNotification function. The function is not being called when I receive a notification while the application is running on the background, but when I press the received notification in the notification bar then the DidReceiveRemoteNotification function runs. How can I run DidReceiveRemoteNotification right when I receive a notification instead of pressing on the notification to make that function run?

public override void DidReceiveRemoteNotification(UIApplication application,
NSDictionary userInfo, Action completionHandler)
{
//executeable code

    }

Viewing all articles
Browse latest Browse all 89864

Trending Articles



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