Hello,
Welcome to our Microsoft Q&A platform!
To implement the push notification in a Xamarin.iOS app, I'm afraid you have to create a Notification Service Extension instead of network extension
, then handle the DidReceiveNotificationRequest
method.
The error is thrown by FBSceneManager
, and is related to the environment. After iOS 10, the developer must inform the OS what environment Push Notification are running in as either development or production. You could open Entitlements.plist
file, check aps-environment
, refer to https://learn.microsoft.com/en-us/xamarin/ios/platform/user-notifications/enhanced-user-notifications?tabs=windows#configuring-the-remote-notifications-environment
There is also a simple, you could refer to https://github.com/xamarin/ios-samples/tree/56aa9e2ea1e5e6236b588e37223a78539f7c9477/ios10/MonkeyNotify
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.