Push-notification token is properly requested and displayed from the iOS simulator / xcode, but not from the release in the AppStore... Both popups for permission (push-notifications and critical alert) appear and can be confirmed, but no callback takes place...
Push notification token in iOS simulator / xcode, but not in AppStore release
If you are talking about the callback to didRegisterForRemoteNotificatons()
, while there could be a number of reasons why that could be failing, assuming you are testing on the same device building from Xcode and installing the App Store version, and if you can confirm that the issue happens on multiple devices installing the App Store version, the first thing that comes to mind is that your aps-environment
entitlement is missing, or contains an invalid value.
You can start by checking the build settings are correctly embedding the entitlement into the built bundle, and also you are using the correct provisioning profile that has push notifications enabled (although you would get a build error in the latter case)