cordova-plugin-backgroundaudio
cordova-plugin-backgroundaudio copied to clipboard
Does not work with iOS 11 builds
Hi, I was referred to this repo from this ticket. I'm trying to implement this on my app. It works for my iOS 10.3 build, but not iOS 11.
I have the same problem, did you solved it, mvbattista? ty
@fjlogrono We found an issue with our audio stream. When we corrected that, the original ticket wasn't valid for us since the previous plugin worked in the background, so no change was needed in our code.
Since I tested with ios11, it has stopped working. I use it to emit sounds from notifications in background. Just a few minutes before updating to ios11, it worked perfectly (with 10.3). Ty
2017-10-31 17:52 GMT+01:00 Michael V. Battista [email protected]:
@fjlogrono https://github.com/fjlogrono We found an issue with our audio stream. When we corrected that, the original ticket wasn't valid for us since the previous plugin worked in the background, so no change was needed in our code.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/cordova-plugin-backgroundaudio/issues/9#issuecomment-340827587, or mute the thread https://github.com/notifications/unsubscribe-auth/AMPMGUxJzsp2UGn2WvMVoCbmkMd91TvHks5sx1BKgaJpZM4PxY65 .
@fjlogrono we have the same issue reported by some of the app users, where it works for few seconds and then suddenly stops. However I have tested on IOS 11 on iPhone 6 and iPhone 6S and it works most of the times.
I've also got the same problem :'( I guess nobody found a solution
I've just tested this scenario with iOS 9 and 11 and the behave exactly the same:
Intended scenario
- Play a song
- Move the app to the background
- The song keeps on playing
Not supported scenario
- Move the app to the background
- Play a song
- No sound
If we want to support the second scenario I think we need to start an audio session when the app moves to the background. At least, that's what Apple suggests:
"You must declare your app plays audible content while in the background, assign an appropriate category to your audio session (AVAudioSession), and make sure your app has an active audio session before entering the background."
I can not make it work by doing what Apple suggests. Has someone solved it?
I've also tried what Apple suggests and many other things I've found in different forums but there's no way it works.