hotwired / hotwired/hotwire-native-android

WebView doesn't request or grant camera/location permissions in Hotwire Native Android

Open
#134 1 comment 1 reaction 0 assignees View on GitHub

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.geolocation or camera input silently fail

Would be great if Hotwire Native Android supported auto-requesting and granting these permissions to the WebView.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.