Repository navigation
fix(location): deny instead of hanging when no prompt can show - #91
Merged
Merged
Conversation
maevsi-bot
pushed a commit
that referenced
this pull request
Nov 25, 2026
## [0.8.1](0.8.0...0.8.1) (2026-11-25) ### Bug Fixes * **location:** deny instead of hanging when no prompt can show ([#91](#91)) ([964ee5b](964ee5b))
|
🎉 This PR is included in version 0.8.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since Android 14, a service bound by a visible app may only start activities when the binding app passes
Context.BIND_ALLOW_ACTIVITY_STARTS, and androidx.browser, which the browser uses to bindDelegationService, does not pass it. So when the web app asks for the location and the app lacks the permission, the library'sPermissionRequestActivityis blocked as a background activity launch, no prompt appears, and the web app's request never settles. This is the problem reported in GoogleChrome/android-browser-helper#499.DelegationServicenow answers the browser's location permission check without success on Android 14 and later while the permission is missing, which the browser treats as a denial, so the web app gets an error right away and can point users to the app's settings. Once the permission is granted there, the next request succeeds without restarting the browser. The workaround can go once the browser binds with the flag again.