Hello,
I'm succesfully testing critical alerts to iOS12 devices. If the user disable critical alerts the notification is received as a normal push notifications.
However on pre-iOS12 devices the notifications are always received silently, regardless of users settings. I testted this on a device with iOS10.x.
To reproduce the problem just send this notification on a pre-iOS12 device:
{"aps":{"alert": { "title":"mytitle","body":"mybody" }, "badge":99, "sound": { "name":"default", "critical":1, "volume":1.0} }}
no sound will be played. This seems to happen anytime I use a dictionary for the sound property, regardless of the "critical" flag.
How should backwards compatibility with older devices be handled ?
Thanks!