-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CameraSource.Prompt configuration is not working #39
Comments
It appears that setting |
Same as RangerRick source: CameraSource.Photos not working |
+1 |
Unfortunately, can't take a photo directly in iOS Safari PWA (issue #64), and can't prompt for the alternatives. |
it's being tracked here ionic-team/capacitor-plugins#493 |
I'm submitting a ... (check one with "x")
[x] bug report
Current behavior:
The camera modal is opening without prompt in the web browser. however in android is working as expected
Expected behavior:
when camera options configuration include "source: CameraSource.Prompt", a prompt shall appear asking whether to take picture or from photos
Steps to reproduce:
I am using
Ionic 4 + Angular + Capacitor + pwa-elements
1- configure Camera Options with source: CameraSource.Prompt
2- ionic serve
3- open the camera modal by executing Plugins.Camera.getPhoto
4- Camera Modal will open directly without prompt
-->
Related code:
const image = await Plugins.Camera.getPhoto({
quality: 50,
source: CameraSource.Prompt,
correctOrientation: true,
width: 600,
resultType: CameraResultType.DataUrl,
});
The text was updated successfully, but these errors were encountered: