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

source: CameraSource only supports Camera on PWA #493

Closed
lolaswift opened this issue Apr 21, 2018 · 18 comments · Fixed by #487
Closed

source: CameraSource only supports Camera on PWA #493

lolaswift opened this issue Apr 21, 2018 · 18 comments · Fixed by #487

Comments

@lolaswift
Copy link

source: CameraSource.Prompt and CameraSource.Photos have no effect on browser. It always opens my webcam instead of poping up the actionsheet or image picker. I tried the example https://github.com/ionic-team/capacitor/tree/master/example/src/pages/camera. All buttons opened my webcam directly. The plugin worked on ios&android simulator as expected.

$ ionic info

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.2
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.9.2

System:

ios-deploy : 1.9.1
ios-sim    : 5.0.6
Node       : v8.9.1
npm        : 5.5.1
OS         : macOS Sierra
Xcode      : Xcode 9.2 Build version 9C40b

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro
@lolaswift
Copy link
Author

$ npx cap doctor
💊 Capacitor Doctor 💊

Dependencies:

@capacitor/cli: 1.0.0-alpha.35

@capacitor/core: 1.0.0-alpha.35

@capacitor/android: 1.0.0-alpha.35

@capacitor/ios: 1.0.0-alpha.35

Capacitor iOS: 1.0.0-alpha.34
Capacitor Android: not installed

(node:2681) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Platform electron is not valid.
(node:2681) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[success] Android looking great! 👌
Found 0 Capacitor plugins for ios:
[success] Everything looking great! 👌

@mlynch
Copy link
Contributor

mlynch commented Apr 30, 2018

Yea that feature isn't implemented yet on the web

@lolaswift
Copy link
Author

@mlynch That explains. Thanks Max.

@jcesarmobile
Copy link
Member

Reopening to keep track of missing feature

@jcesarmobile jcesarmobile reopened this May 1, 2018
@ljieyao
Copy link

ljieyao commented Jul 14, 2018

anyone start working on this already?

@jcesarmobile jcesarmobile changed the title source: CameraSource.Prompt has no effect PWA source: CameraSource only supports Camera on PWA May 27, 2019
@jcesarmobile
Copy link
Member

Edited to also cover CameraSource.Photos

@kevinclarkneudesic
Copy link

Looking forward to this, but the Webcam piece is working great!

@iamenrique
Copy link

It would be great to have an update regarding this issue/request.
Regards.

@iamenrique
Copy link

Hi @Bktechmasala,
The video you've posted has nothing to do with the source: CameraSource.Photos setting.

Thank you anyway.

@kensodemann
Copy link
Member

A person that I am working with is also requesting. Any information regarding where this is on the backlog would be helpful so I can communicate that information back to them.

@Indrajeetsing
Copy link

Yea right now it only supports clicking image from camera. Regardless of sourcetype . For work around I have created a popup and for capturing images i'm using capacitor and for choosing image i'm using normal input type file upload

@AndreDriesel
Copy link

@mlynch will ionic-team/capacitor#1856 solve this problem? if so, when will it merge into it?

@antoninbeaufort
Copy link

@mlynch will ionic-team/capacitor#1856 solve this problem? if so, when will it merge into it?

I hope this will solve the problem and that it will be merge soon, for me it's more important on the web to have a file selector rather than a webcam.

In my case users take pictures outdoors with their smartphone so if they put pictures from a computer it will be from a file selector.

@BenedictRinga
Copy link

Hello all. Thanks @mlynch

I can see all the work for input selector on camera, but I have no idea how to integrate it into my project.

So far I use the HTML5 option.
Thanks

@ikishanoza
Copy link

I am stii having same issue any updates on this ?

@uncvrd
Copy link

uncvrd commented Jul 13, 2020

I would be interested in hearing about an update with this as well

@jcesarmobile
Copy link
Member

2.3.0 allows CameraSource.Photos, but no CameraSource.Prompt yet

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 30, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.