bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Delay in showing native geolocation prompt

Open engrtitus opened this issue 4 years ago • 3 comments

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

engrtitus avatar May 06 '21 13:05 engrtitus

CC @EiraGe

andreban avatar May 06 '21 13:05 andreban

Update

I just noticed it shows if i minimize and reopen the app

https://user-images.githubusercontent.com/26025134/117583726-bf263280-b100-11eb-9b5a-81a712ee89a3.mp4

engrtitus avatar May 09 '21 18:05 engrtitus

Not wanting to compound this, but I have had one user report this same issue on a Xiaomi Mi8.

I've been unable to reproduce this on my devices so far.

david-buck avatar Jun 08 '21 04:06 david-buck