188
Views
2
Comments
[Camera Plugin] CameraPlugin in PWA
camera-plugin
Mobile icon
Forge asset by OutSystems
Good afternoon guys, 

I'm starting on outsystems and I have a question. 

Can I use the Camera Plugin with PWA with request for access to the camera to take a photo, either on the PC browser and on the mobile device?
2020-11-10 23-58-16
Raphael Ranieri
 
MVP

Hi Rodrigo,

I don't think you can access the camera  using a cordova plugin in PWA.
However there is other ways of doing it, for example, using pure html you may be able to open your device camera in both PC or Cellphone.


Take a look at this for example.


Try to inject this html in your screen:

<input type="file" accept="image/*" capture="camera" />
2020-11-10 23-58-16
Raphael Ranieri
 
MVP

Take a look at this other forge component.
With it you will be able to do it.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.