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

RegisteredForRemoteNotifications not called in iOS10+

$
0
0

Hi,
I try to add remote push notification to my app. I create a developer profile for APNS, and I set the key aps-environment with value development in Entitlements.plist

My code:

UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (approved, err) => {
                    if(approved) {
                        UIApplication.SharedApplication.RegisterForRemoteNotifications();
                    }
                });
                UNUserNotificationCenter.Current.Delegate = new DelegateForCenterNotification();

The app call 'UIApplication.SharedApplication.RegisterForRemoteNotifications();' but after that nothing happen. No error, no success.

What is my error?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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