After upgrading to iOS 10.1.1, custom iOS Notification sound stops after 5 seconds.
This only happens if the device is turned on, but when the device is turned off, it plays for as long as 30 seconds.
The UNNotificationSound documentation says:
You can pack the audio data into aiff, wav or caf file. Sound files should be less than 30 seconds long. If the sound file is longer than 30 seconds, the system plays the default sound.
https://developer.apple.com/reference/usernotifications/unnotificationsound
So, if we can install 30 second sound files, then there should be a way to allow them to play for 30 seconds, not only 5?
source share