Capacitor Camera Plugin Questions #4977
Unanswered
gopherrdiggs
asked this question in
Q&A
Replies: 2 comments
-
I continued reading through other discussions and found #4944 which seems to answer the questions about why |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like you are running the apps as a PWA and not as native apps, or you are using the web implementation of the plugins. If you are in a PWA, then PWA elements would be used, you can only get the native UI when building native apps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was able to get the camera plugin working with my PWA pretty easily, but there were two minor obstacles that I need help understanding:
source
asCameraSource.Prompt
; however, if the user selects "Take Picture" on an Android or iOS device they see the PWA Elements implementation instead of the native one. To get to the native camera implementation, the user must select "From Photos" and then "Camera," which is not intuitive. The documentation is pretty clear that PWA Elements is required in order for the camera plugin to work, and I found this to be true, but is there a way to configure the plugins to go directly to the native implementation for the "Take Picture" option?checkPermissions()
on iOS resulted in the errorPermissions API is not available in this browser.
Removing that line and going straight togetPhoto()
seems to work, but am I missing something in my installation that would cause that error on iOS?package.json:
Beta Was this translation helpful? Give feedback.
All reactions