hotwired / hotwired/hotwire-native-android
WebView doesn't request or grant camera/location permissions in Hotwire Native Android
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 163
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
In my Rails web app, features like camera and location work fine in a mobile browser where permissions are requested automatically.
However, when opened in the Hotwire Native Android app, the WebView doesn't request permissions, and access to camera/location is blocked.
Expected:
- App should request permissions (camera, location, etc.)
- Once granted, web app should be able to access them via JS APIs
Actual:
- No permission prompt
- Features like
navigator.geolocationor camera input silently fail
Would be great if Hotwire Native Android supported auto-requesting and granting these permissions to the WebView.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by tracing how the Android WebView handles web permission requests and runtime camera/location permissions; done means the app prompts for the required permissions and the WebView exposes the granted capabilities to JavaScript.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100