Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

onpictureprocessed does not work #49

Open
kimsean opened this issue Apr 20, 2020 · 4 comments
Open

onpictureprocessed does not work #49

kimsean opened this issue Apr 20, 2020 · 4 comments

Comments

@kimsean
Copy link

kimsean commented Apr 20, 2020

the onpictureprocessed does not work on simulator? is this really an issue or not?

@humphreyja
Copy link
Member

@kimsean What simulator are you using? This should have no issues working.

@kimsean
Copy link
Author

kimsean commented Apr 21, 2020

Im using Iphone 11 simulator

@kimsean
Copy link
Author

kimsean commented Apr 21, 2020

I tried on different simulator, and its not working, even if i just followed the instructions given.

@humphreyja
Copy link
Member

Here's a few things you can try. The onErrorProcessingImage event will return an error message if there was an error during capture. Check this to see if there is something failing. There's also the onPictureTaken event should return the path to where the captured images will be saved (this is before the write operation). If this succeeds, then listen for the onPictureProcessed event. This means the image was captured and stored successfully. If none of these run, then there is a larger issue here.

Also, do not expect this to redirect to a new page showing the preview of the image after capture. All it does is return the path to the captured image. You need to build your own workflow after capture.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants