'Trying to stop APNS custom sound from finishing playing
We are playing a custom when we deliver a push notification like so.
{
"aps" : {
"alert" : {
"body" : "User 1 started a Meeting",
"title" : "User 1 in New Topic"
},
"sound" : "ringConferenceStarted.wav"
},
"data" : {
"messageType" : "conference_started"
}
}
The sound is about 26 seconds long.
Is there a way to end the sound early if we want to? We have looked into background pushes to send another one to stop it but it doesn't look like we end the playing with that method.
Solution 1:[1]
In the Apple documentation it says:
You can't modify silent notifications or those that only play a sound or badge the app's icon.
It seems that you need to update your notification strategy.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
