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?