Ionic PWA to access mobile camera


#1

My requirement is to access the mobile camera in iOS and android using the mobile browser

Using Ionic PWA app can I access mobile camera in iOS and android device browsers? Looking for PWA solution using Cordova (not native solution ) > please advise this is possible and any help


Can I use ionic-native components in a PWA, or do I need to publish my app for iOS / Android?
#2

See https://caniuse.com/#search=getUserMedia() for browser support and issues.

Chris


#3

Thanks , can i use Cordova in Ionic PWA?


#4

No. Cordova Plugins use native device code (Swift, JAVA) to perform their functions.


#5

Thank you very much

only option in PWA to access camera is through HTML5?


#6

Yes. In the end a PWA is just a web app (enhanced with service workers). The same limitations you have in a browser are still there.