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

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?

Related

Playing long sound in local notification iOS10

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.

iPhone stops playing audio in the background

Our iPhone app is configured to play audio in the background, and most of the time it works well and the audio is playing.
But we had several reports from users that while the app is in the background and it IS playing audio, suddenly in the middle of playback it stops.
It seems to happen usually when the user is using apps like Facebook or WhatsApp heavily, sending and receiving many messages.
When the user returns to the app, it seems to start from the launch screen, as if it was closed, not just the audio stopped.
There seems to be no crash logs on the users phones when this happens.
What can cause this? What can we do to prevent this or what can we do to investigate when this happens? Can it be prevented entirely?
apple fixed this already.
Before the release of iOS 10.0.2, the only way to fix the bug was to unplug the EarPods and then plug them back in. Not all devices were affected, but it looks like Apple finally found the fix it promised earlier this week.
Here is an article: http://www.cultofmac.com/446417/apple-fixes-iphone-audio-issues-ios-update/

iOS9 reports app background usage when app is not running in the background

We have an app that has UIBackgroundModes set to Audio because it offers streaming of audio inside the app. I have used the app over a period of 6 days and never used the streaming part but still iOS reports the app as having 1 hour of background usage and 3,2 hours on screen.
Is there any reason why the app would continue in the background if the audio is not active? I thought it would only do so if we actually played audio. When testing the app in debugger I don't see any activity after pressing the home button so it seems suspended to me but iOS9 seems to think otherwise.
with the BG mode, your app runs in the BG as long as it isn't killed by the user

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.

iPad MoviePlayer refuses to play video until device restart

I have a very strange bug in a shipping iPad/iPhone app that I can't fix/track down.
My app plays video in a standard MPMoviePlayerController but with the interface hidden and my own buttons to play and stop.
That works fine but sometimes, after a few times of use, my app refuses to play any further video. This happens only on the iPad (in iOS 3.2.x), on the iPhone (in iOS 4.x) everything works fine all the time. Strangely enough, even after I quit my app, after I start it again it still refuses to play video. It doesn't save the video state, and it does reload the video. Only after I restart the iPad it starts working again.
If my iPad is in a "don't play video" state I can debug my app from Xcode and there isn't anything different other than the fact that the movie doesn't play but stays paused indefinitely.
The loadState property reports as MPMovieLoadStatePlayable, but the playbackState property stays MPMoviePlaybackStatePaused however many times I sent it a "play" command.
There is nothing I can do in my app (like choosing another video) to make the video work again.
The videos are 600 x 400 H.264 and are played in a view that is larger than full screen so I can show them full screen (without black bars) on the iPad without needing two different versions for iphone/ipad, because the devices have different aspect ratios.
There is plenty of RAM available (> 60 MB). Other apps that play video (iTunes/YouTube/streamToMe) play fine, but use the standard MoviePlayer interface/controls and don't of course don't play bigger than full screen.
This all makes me suspect this is an Apple bug. I haven't yet tested this in a beta version of iOS, and if so I couldn't talk about it either.
Anybody seen this behaviour? And has a possible solution? Thanks!
In this thread Ipad MPMovieplayerController video loads but automatically pauses when played it appears they solved the issue by using player.useApplicationAudioSession = NO;. Give it a try!
This is a quite common bug with MPMoviePlayerController on iPad OS 3.2.x
After a few runs of any app, the movies fail to play and if you move the scrubber you can see the frames but you can't still play the video for more than one frame at a time!
Besides you may notice a great memory consumption, due to the fact that some apps start receiving memory warnings more often than normal.
Finally you may prove this is a system problem (and not specifically an app problem) buy trying to run other apps that use the same framework, e.g. "ABC News". The issues cannot be seen with other apps that use UIWebView for instance (e.g. the ones based on You Tube videos).
The only solution is to re-boot the device. This works until next reboot.
Carlo

Resources