Geolocation (GPS) not working
Chrome (Android)
- Open Chrome and go to your web app
- Tap the lock icon or site info icon in the address bar
- Tap Permissions or Site settings
- Find Location in the list
- Ensure it's set to Allow (not "Ask" or "Block")
- If it was blocked, change to Allow and refresh the page
Alternative method:
- Tap the three dots menu (⋮) in Chrome
- Go to Settings > Site settings > Location
- Find your domain in the list and ensure it's set to Allow
Safari (iOS)
- Open Safari and go to your web app
- Tap the AA icon in the address bar
- Tap Website Settings
- Find Location and set it to Allow
- Refresh the page
If that doesn't work:
- Go to iPhone Settings > Safari > Location Services
- Ensure it's set to While Using App
- Also check Settings > Privacy & Security > Location Services > Safari Websites
Firefox (Android)
- Open Firefox and go to your web app
- Tap the shield icon or lock icon in the address bar
- Tap Permissions
- Set Location to Allow
- Refresh the page
Samsung Internet (Android)
- Go to your web app
- Tap the lock icon in the address bar
- Tap Permissions
- Set Location to Allow
General troubleshooting:
- Clear and reset: If permissions seem stuck, go to browser settings and clear site data/permissions for your domain, then revisit the site to get a fresh permission prompt
- Force refresh: After changing permissions, do a hard refresh (Ctrl+F5 or clear cache)
- Test prompt: If no permission dialog appeared initially, the user might have accidentally denied it - clearing permissions will bring the prompt back
The key is making sure the permission is explicitly set to Allow rather than Ask or Block.