nativescript-camera-plus icon indicating copy to clipboard operation
nativescript-camera-plus copied to clipboard

Unable to take new photos when app has been put in background (iOS)

Open Lelelo1 opened this issue 6 years ago • 2 comments

When first running the app with the plugin it works to take pictures that is saved to gallery - and I am notified each time through photoCapturedEvent. However when the app has been put in background and revisited - no photos can be taked.

I get the following log though:

CONSOLE LOG file:///node_modules/@nstudio/nativescript-camera-plus/camera-> plus.common.js:17:0 NativeScript-CameraPlus --- CameraPlus takePic options:,

each time I attempt taking photo. But photoCapturedEvent is not fired and no photo is saved to gallery.

Lelelo1 avatar Sep 26 '19 10:09 Lelelo1

A workaround I found was to via application lifecycle create a new instance of CameraPlus for each new application resume event

Lelelo1 avatar Oct 13 '19 17:10 Lelelo1

A workaround I found was to via application lifecycle create a new instance of CameraPlus for each new application resume event

Can I have an example? After all, the instance is created in onCameraLoaded

Bezlepkin avatar Jul 27 '21 14:07 Bezlepkin