Skip to content
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

Closed
amohseng opened this issue Sep 17, 2019 · 5 comments
Closed

CameraSource.Prompt configuration is not working #39

amohseng opened this issue Sep 17, 2019 · 5 comments

Comments

@amohseng
Copy link

amohseng commented Sep 17, 2019

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,
});

@RangerRick
Copy link

It appears that setting source doesn't work at all. When I try to pass source: CameraSource.Photos it still pops up the "take a photo" UI.

@BluebambooSRL
Copy link

Same as RangerRick source: CameraSource.Photos not working

@shadowboxingskills
Copy link

+1

@andrewrains
Copy link

Unfortunately, can't take a photo directly in iOS Safari PWA (issue #64), and can't prompt for the alternatives.

@jcesarmobile
Copy link
Member

it's being tracked here ionic-team/capacitor-plugins#493
will be fixed on camera plugin once ionic-team/capacitor-plugins#487 gets merged

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

No branches or pull requests

6 participants