Playing long sound in local notification iOS10 - ios

I have a custom sound playing on local notification, in iOS 10 when the device is locked everything works fine and the sound plays till the end. But when the device is unlocked, as soon as the notification bar hides ( in about 5 Secs.) the sound stops playing.
PS. It works fine in iOS 9, the notification bar stays on top as long as the notification sound is playing.
Is it a bug or am I missing something?
EDIT:
I've tested with either UNUserNotificationCenter and deprecated UILocalNotification. Both the same result.

Related

UIScreen.capturedDidChangeNotification notification is not called on iOS simulator?

I am trying to detect when a user starts recording the screen and for that, I am adding observer for notification UIScreen.capturedDidChangeNotification. However UIApplication.userDidTakeScreenshotNotification notification is working fine in simulator. How should I test the app by recording the screen?

iOS 10 custome remote notifications sound not playing the whole file length

I am aware of the bug in iOS 10 that will prevent custom remote notifications sound from playing. The current solution seemed to be restart the device. That seemed to temporary fix. But this problem will reoccur again.
But my problem is that when it did play the custom sound, it did not play the whole file (30 seconds or less). It only plays 2-3 seconds and the notification view disappears.
It works fine under iOS 9.
Have you encountered this issue? Any suggestions?

iOS 10 local notification not showing max time like iOS 9 does in Background state

I am doing VoIP application. If my application is in background state, I am playing incoming call with local notification. Its worked fine in iOS 9. Its showing banner minimum long duration. But, in iOS 10, its showing only near 10 seconds and disappearing banner automatically.
How to show maximum time local notification banner in iOS 10 like iOS 9 does.

Push notification sound doesn't work on iOS8

Hi trying to fix a issue discovered other, the device is not playing the notification sound if it is locked. If device is unlocked the sound is played this issue happens only on iOS 8.x.
I test other apps like gmail and the same no notification sound when the device is locked
The sound is enabled from the notification center
The register for remote notification is done correctly like this
The only issue is that when the device is locked there is no notification sound even the lock screen is not lighting up like on previous versions.
Any solution to fix this ?
UPDATE:
After updating the device to iOS 8.3 seams that all iOS bugs that i notice before now are fixed , and the notification sound too, but I still what to know if there is some solution for this issue, thx.
Did you make the same noob mistake as me ? :D
I had the Do Not Disturb mode turned on and it prevented the device lock screen from waking and no sound played.
If you did, turn off Do No Disturb.
Note: the Do Not Disturb toggle can be accessed by pulling up from the bottom of the iPhone screen. It's the crescent moon icon that's next to the rotation lock button.
Along a similar vein to #Zhang, I wasn't getting any sounds because I had sound volume turned down all the way in Settings > Sounds. There is a "Ringers and Alerts" volume slider (top of the screen, in iOS 8.1 at least) that I had all the way down, and after increasing this volume slider I was able to hear the alert sounds.

MPMoviePlayerPlaybackDidFinishNotification not firing in iOS 4.3

I have added an observer for MPMoviePlayerPlaybackDidFinishNotification to determine if a movie has finished playing. It works fine in iOS 5, the notification fires when the movie has reached the end.
However, in iOS 4.3, the notification never fires. Has anyone experienced the same problem and come up with a workaround?

Resources