cordova-plugin-backgroundaudio icon indicating copy to clipboard operation
cordova-plugin-backgroundaudio copied to clipboard

Does not work with iOS 11 builds

Open mvbattista opened this issue 7 years ago • 8 comments

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.

mvbattista avatar Oct 07 '17 15:10 mvbattista

I have the same problem, did you solved it, mvbattista? ty

fjlogrono avatar Oct 31 '17 16:10 fjlogrono

@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.

mvbattista avatar Oct 31 '17 16:10 mvbattista

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 avatar Nov 02 '17 08:11 fjlogrono

@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.

dhavaln avatar Nov 24 '17 10:11 dhavaln

I've also got the same problem :'( I guess nobody found a solution

asos-hutber avatar Nov 29 '17 16:11 asos-hutber

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."

EddyVerbruggen avatar Nov 29 '17 19:11 EddyVerbruggen

I can not make it work by doing what Apple suggests. Has someone solved it?

ghost avatar Dec 12 '17 11:12 ghost

I've also tried what Apple suggests and many other things I've found in different forums but there's no way it works.

alfonso8969 avatar Jan 03 '18 19:01 alfonso8969