cordova-plugin-background-mode icon indicating copy to clipboard operation
cordova-plugin-background-mode copied to clipboard

Doesn't Work With Flashlight

Open glenelkins1984 opened this issue 3 years ago • 1 comments

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?

glenelkins1984 avatar Jun 04 '21 11:06 glenelkins1984

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.

badursun avatar Mar 07 '23 08:03 badursun