0

我在我的离子应用程序中使用了科尔多瓦背景模式插件。

https://github.com/katzer/cordova-plugin-background-mode

除了 bakcground 模式,我还使用离子相机。每次设备摄像头打开时,都会启用后台模式

当我从应用程序打开设备相机时,有什么方法可以防止后台模式处于活动状态

4

1 回答 1

0

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.

于 2020-05-18T15:29:28.930 回答