Hello, i have requested critical alerts by apple and this is now approved. Im looking how to integrate this feature but there are no docs . Normal notifications are handled as expected.
Do u have any idea to integrate critical alerts?
It also looks like you’re in managed- since this feature requires the special entitlement from Apple, it will not work in Expo Go. You’ll need to test in a standalone app
The upload through transporter results in the following error:
ERROR ITMS-90164: “Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. According to the provisioning profile, the bundle contains a key value that is not allowed: ‘1’ for the key ‘com.apple.developer.usernotifications.critical-alerts’ in ‘Payload/myapp.app/myapp’.”
Why its not allowed? my provisioning profile by apple shows that critical alerts are enabled??
And you’re sure the correct provisioning profile is being used when building the app? Maybe extract it from the IPA and double check. I’ve never done that before, but this looks like it should work.
Yes, the extracted embedded.mobileprovision file contains the same as the given i found by apple. But the content is not readable. It looks only similar to both files.