2

Hello fellow Xamarin developers,

We are developing an APP that should receive push notification, even with APP closed.

I am receiving notifications when the APP is open or in the background, but after restarting the device the notifications are not received.

Note:

I read the content of the page https://developer.apple.com/reference/uikit/uiapplicationdelegate

I added in Info.plist: UIBackgroundModes / remote-notification

Overwrote the methods: RegisteredForRemoteNotifications, ReceivedRemoteNotification and DidReceiveRemoteNotification

Any tips? Can I actually receive notifications after rebooting the device? I would need to create some service to register the device (In Android was necessary to create the service, in Windows-UWP No)?

Thank you very much!

1
  • You shouldn't have to do anything special to make notifications work after a reboot Mar 25, 2017 at 10:25

1 Answer 1

0

I following this tutorial and it's working for me perfect

https://learn.microsoft.com/en-us/azure/notification-hubs/xamarin-notification-hubs-ios-push-notification-apns-get-started

6
  • Hello Mich, I used exactly this tutorial. After opening the application it works perfectly even if I close it. However, after restarting the device, the application does not receive the notifications. Mar 28, 2017 at 14:05
  • Use release (maybe this is debug problem) version and try it again please.
    – G.Mich
    Mar 29, 2017 at 9:37
  • In android you use <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> or your app working without this ?
    – G.Mich
    Mar 29, 2017 at 9:49
  • Dear G. Mich, The push notication on Android and Windows is working fine, we even use the permission you mentioned on Android. I'll take the test you indicated on iOS with release. Thanks for the support !!! Mar 29, 2017 at 17:58
  • Hi @RigelAguilar I am also facing the same issue.When i restart the app the notifications is not working for ios.it is working good in android.Did you solve your problem? Oct 25, 2017 at 4:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.