katzer / cordova-plugin-background-mode

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

Doesn't Work With Flashlight #557

Open glenelkins1984 opened 2 years ago

glenelkins1984 commented 2 years ago

I've developed an ionic app that turns the flashlight on and off, but i need that to run in the background on iOS as well. The app runs in the background just fine, but when it is the flashlight doesn't do anything.

I've just used the same code as i do when the app is open: this.flashlight.toggle(); yet nothing happens when running in the background?

badursun commented 1 year ago

I've developed an ionic app that turns the flashlight on and off, but i need that to run in the background on iOS as well. The app runs in the background just fine, but when it is the flashlight doesn't do anything.

I've just used the same code as i do when the app is open: this.flashlight.toggle(); yet nothing happens when running in the background?

Did you find any solution? I'm currently trying to do something similar. The application is running in the background, but the flash light turns off in the background.