katzer / cordova-plugin-background-mode

Keep app running in background
Apache License 2.0
1.38k stars 1.01k forks source link

No effect on iOS11 #395

Open NeckbreakerPascal opened 6 years ago

NeckbreakerPascal commented 6 years ago

Not sure if I am the only one, but since iOS11 it looks like this plugin will no longer work? I already changed that key name, but nothing.

I am just using the enable and disable-function when an audio is playing in my app. But soon as the iPhone goes to sleep mode or the app goes in the background, audio got paused.

Any info about that issue? Tested with an Ionic1 App on iOS 11.4.1 on an iPhone 7

merbin2012 commented 6 years ago

Yes, this is not working in iOS devices. but it is working perfectly in Android device.

capripio commented 6 years ago

@NeckbreakerPascal @merbin2012 by any chance you guys found any workaround?

merbin2012 commented 6 years ago

@capripio Noooo

DanielDimanov commented 5 years ago

Please suggest a fix for IOS

cesarmiguel85 commented 5 years ago

Hi. Same here, I am trying to have an audio play even when screen is off. Works fine on Android, but does nothing on iOS, the sound is choppy when the screen is locked (even after declaring backgroundmode audio in xcode). I don't know if we are going to get an answer, it seems devs are busy (last update was 8 months ago) :-(

Let's hope someone finds a workaround...

RamiAlmofleh commented 5 years ago

Same Problem here, someone had a workaround??

NeckbreakerPascal commented 5 years ago

Still need one

goinnn commented 5 years ago

This works for me. iOS 11.2.5 cordova-plugin-background-mode 0.7.1 and CDVUIWebViewEngine

pfh57 commented 5 years ago

We are having the same problem on IOS 12.1.2 and Android Oreo version 8. Does not work. E.g on IOS, the app suspends and resumes OK but not running during suspend. Seemed to work OK on Android 7. Anyone working on a fix or workaround?

DanielDimanov commented 5 years ago

Check if you have any intervals running. They migth interfere. So examine what exactly is suspending and if you have any functions hijacking the thread.