-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
refactor(android): webview permission/storage handling #12105
Conversation
- Modified HTML <input/> handling: * Only supported on Android 5.0 and higher. (This is a limitation on Google's end.) * Added "capture" attribute support to capture photos/videos. * Honors Android 10 "scoped storage". * No longer requires WRITE_EXTERNAL_STORAGE permission. * Now automatically prompts for CAMERA permission if needed. - Added audio/video WebRTC support to WebView. * Will automatically prompt for CAMERA or RECORD_AUDIO permission if needed. - HTML Geolocation API now automatically prompts user for ACCESS_FINE_LOCATION permission if needed. Fixes TIMOB-28057, TIMOB-25854, TIMOB-28140, TIMOB-27138
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: PASS
android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiWebChromeClient.java
Outdated
Show resolved
Hide resolved
FR: Pass Test Environment |
(cherry picked from commit a206387)
JIRA:
Summary:
<input/>
handling:openFileChooser()
method hack does not work on Android 4.4.)getExternalStoragePublicDir()
withMediaStore
.)WRITE_EXTERNAL_STORAGE
permission.CAMERA
permission if needed.CAMERA
orRECORD_AUDIO
permission if needed.ACCESS_FINE_LOCATION
permission if needed.WebView Photo Selection Test:
(This test won't work on Android 4.4.)
WebView Video Selection Test:
(This test won't work on Android 4.4.)
WebView Photo Capture Test:
(This test won't work on Android 4.4.)
WebView Video Capture Test:
(This test won't work on Android 4.4.)
WebView Geolocation Permission Test:
WebRTC Test:
(Note: The "Screen Capture" option is not supported on Android.)