Delay in showing native geolocation prompt
Describe the bug Native geolocation prompt takes a very long time to show
To Reproduce Steps to reproduce the behavior:
- Open an installed TWA
- Call navigator.getCurrentLocation or navigator.watchPosition
- 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
CC @EiraGe
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
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.