As you @ Sreejith Sreenivasan said, you solved the problem. Thanks for your sharing.
And you can manually edit the
Info.plist and add the following key/value pair to enable the Remote Notification:
<key>UIBackgroundModes</key> <array> <string>remote-notification</string> </array>
For adding a new entitlements file, you added a new XML file named
Entitlements.plist to the Platforms\iOS folder of your app project. Then add the following XML to the file. And then add Push notifications to the
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>aps-environment</key> <string>development</string> </dict> </plist>
For more details, you can see iOS entitlements - .NET MAUI | Microsoft Learn
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.