GoogleChromeLabs / GoogleChromeLabs/bubblewrap

Delay in showing native geolocation prompt

Open
#520 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.1k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Native geolocation prompt takes a very long time to show

**To Reproduce**
Steps to reproduce the behavior:
1. Open an installed TWA
2. Call navigator.getCurrentLocation or navigator.watchPosition
3. The native prompt takes as long as 5 minutes to show

**Expected behavior**
It should work the same way it works in browser/pwa. The browser prompt shows less than 5 seconds after calling getCurrentLocation or watchPosition

**Screenshots**

https://user-images.githubusercontent.com/26025134/117331828-0907e200-ae8f-11eb-8d21-5390603e95f2.mp4

Check how fast it shows in browser but still hasn't shown in twa after ~ 20 seconds

**Smartphone (please complete the following information):**
- Device: Redmi note 7
- OS: Android 9
- Browser: Chrome
- Version: 89.04.4389.86

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.