nstudio / nativescript-camera-plus

MIT License
79 stars 50 forks source link

PhotoCapturedEvent event does not work on mobile #113

Open wuilmerj24 opened 4 years ago

wuilmerj24 commented 4 years ago

When I try to take the photo using the default buttons, the photoCapturedEvent event does not work, but it does open the gallery. But in the android emulator if everything works fine.

var CameraPlus = require("@nstudio/nativescript-camera-plus").CameraPlus; exports.camLoaded=function(args){ camera=args.object; let cam = camera.getViewById("camPlus"); cam.on('photoCapturedEvent', (event) => { fotoGet(event); }) cam.on("imagesSelectedEvent", (event) => { fotoGetGaleria(event); }) }

msn444 commented 4 years ago

Same here. It used to work -- did something break in a recent update?

EDIT: Never mind. I was on 2.2.0; I've now updated to 3.0.5 and photoCapturedEvent gets called as expected.

vicmasa commented 4 years ago

I have the same problem, you cannot take photos with the takePicture event, and the event is not detected. I enclose a project where I could isolate the error. https://github.com/vicmasa/testbg Greetings.