mgks / Android-SmartWebView

A simple use webview integrated w/ native features to help create most advanced hybrid applications.
https://mgks.dev/smart-webview
MIT License
551 stars 276 forks source link

Camera Don't Open for Taking Pics, Permission Requested Only #291

Open shanideshwal opened 1 year ago

shanideshwal commented 1 year ago

Describe the bug Here are the setting in smartwebview.java file: static boolean ASWP_FUPLOAD = true; // upload file from webview static boolean ASWP_CAMUPLOAD = true; // enable upload from camera for photos static boolean ASWP_ONLYCAM = false; // incase you want only camera files to upload static boolean ASWP_MULFILE = false; // upload multiple files in webview

It asks to take pictures and records videos (video icon) and I allowed. It opens files only.

While there is no permission for files on app. When I go to app setting, there is 'photos and videos' is not allowed.

Expected behavior App is not able to take pictures using camera.

Screenshots WhatsApp Image 2023-05-15 at 5 37 06 PM

Device (please complete the following information):

Additional context

mgks commented 1 year ago

You need to add permissions specific for Android 13:

Images & Videos READ_MEDIA_IMAGES
Audio READ_MEDIA_AUDIO
Videos READ_MEDIA_VIDEO

I'll add these permissions in next release.

natsirasrafi commented 10 months ago

i have the same problem, how to add permision, i am just add permision to manifest but still problem