[ad_1]
I’ve constructed a PWA that calls the javascript API navigator.geolocation.getCurrentPosition which prompts the consumer for location entry when the Safari permission is about to Ask. That is the right habits and works as anticipated when open in Safari.
Nevertheless when added to the Residence Display and operating with a show mode of “standalone”, the placement alert doesn’t open on my cellphone (iPhone 13 mini / iOS 15.1.1). And the decision by no means occasions out. Then if I swap from the PWA to Safari the placement alert / immediate is instantly displaying in Safari. So plainly the alert is focusing on the flawed “tab”. This doesn’t occur if the PWA show mode is “browser” or “mimimal-ui” with both of these it behaves usually.
I can solely replicate this on my cellphone (iPhone 13 mini / iOS 15.1.1). I’ve additionally examined on varied older telephones (15.1.1 and 14.7) in addition to a number of emulators and so they all behave as anticipated.
It’s potential it is a obscure setting on my cellphone however it does really feel rather a lot like an iOS Safari bug.
[ad_2]
