alexalok/dotAPNS

AddSound for critical notifications

KrastianM2M opened this issue · 1 comments

Describe the bug
The sound property beside form string can also be object for critical notifications

Code snippet
JSON preview of the sound field in the payload for a critical sound
"sound": {
"critical" : 1,
"name": "default", // or name of a sound file in the app's main bundle
"volume": 1 // value between 0 (silent) and 1 (full volume)
}

Expected behavior
AddSound method should also be able to receive a object

Actual behavior
AddSound only receives a string and there is no way to set a sound of the notification as critical.

Additional context
A critical sound plays even if Do Not Disturb is turned on or the device is muted.

Hi @KrastianM2M!
Thank you for your suggestion. This feature is on my roadmap. Stay tuned for updates!