iOS Question Follow: Critical notifications

Nicolás Cieri

Active Member
Licensed User
Follow-up to this case,

Once Apple gives you permission, new profiles should be generated in the developer account.

How can I add the new entitlement? and how can I add this notification? I suppose it is some parameter at the time of the creation of the notification, but I don't know how to do it for B4i.

Any ideas?. Thank you.
 

Nicolás Cieri

Active Member
Licensed User
Hello,

Thanks for your interest in the Critical Alerts API.

We added a new template containing the Critical Alerts entitlement to your team's developer account.

To use this special entitlement you must create a new provisioning profile in the Certificates, Identifiers & Profiles section of your developer account:

<https://developer.apple.com/account/>.

When you create a Development or Distribution provisioning profile for your Team ID, after selecting the devices to be included in the profile, you should see a new page entitled “Do you need additional entitlements?”. Select “Critical Alerts” from the Entitlements popup to include the Critical Alerts entitlement in your new profile.

Once you’ve finished generating the profile, you can use it in Xcode like any other manually-generated profile.

IMPORTANT: If you have problems getting this to work, read Technote 2415 “Entitlements Troubleshooting” for troubleshooting steps.
...
...
In my Apple account, the new profiles have already been generated with this option selected.
 
Upvote 0

Nicolás Cieri

Active Member
Licensed User
Yes, but when creating a Notification it must be indicated that it is critical.

Because I must be able to send normal and also critical.
 
Upvote 0

Nicolás Cieri

Active Member
Licensed User
I think it must be something like that, but it doesn't work in the tests I've done.

{
“aps” : {
“sound” : {
“critical”: 1,
“name”: “critical-alert-sound.wav”,
“volume”: 1.0
}
}
}
 
Upvote 0
Top