If it’s not working in browser, try opening the inspector console. It will think you are in development mode and allow it.
For me it worked in Browser, but not working in iOS. I’ve figured out how to make it work for iOS:
Go to your apps Info.plist file in Xcode. Add these two keys:
NSLocationWhenInUseUsageDescription
NSLocationAlwaysUsageDescription
The Values for these two keys are simply any string descriptions you want to show the user when allow geolocation popup will come on the device. Rebuild and deploy.