I need to play notification sound for a long time (20-25 sec) when the app is in background. I have imported my custom sound file (25 sec in duration) in the project. Custom sound is playing but the problem is it only plays as long as the notification badge remains on the screen, i.e. 3-4 sec. As soon as the badge disappears, the notification sound also stops. What should I do ?
Asked
Active
Viewed 65 times
1 Answers
0
In this link Managing Your App’s Notification Support, go to section title Preparing Custom Alert Sounds
It mentions, Custom sounds must be under 30 seconds when played. If a custom sound is over that limit, the default system sound is played instead.
Possible duplicate of Limits on iPhone push notification sounds?

Meenakshi Rai
- 51
- 1
- 5