Reputation: 945
I'm using cordova background-mode plugin in my ionic app.
https://github.com/katzer/cordova-plugin-background-mode
Alongside with bakcground mode i use ionic camera also. Every time device camera open, background mode is being enable
Is there any way to prevent background mode to be active when i open device camera from the app
Upvotes: 0
Views: 561
Reputation: 945
ionic, being a web app, the main layer uses a browser. When you open the camera, the layer submits to the device's camera. As a result background mode is activated since the ionic view has been removed.
Ideal for preventing this from turning off background mode on pages where you use the camera.
Upvotes: 0