getCurrentPosition() Doesn't Just Check — It Prompts
DEV Community·6 points·parsajiravand·5 days ago·dev.to
You want to peek at whether location access is already granted before showing your own 'why we need this' banner. Calling getCurrentPosition() to find out fires the real system prompt. navigator.permissions.query() reads the state without ever asking.
Read the full article at dev.to →
Related stories
- The Verge · 0 points · 5 days ago
- Can John Ternus find Apple’s next big thing?theverge.comThe Verge · 0 points · 10 days ago
- The Verge · 0 points · 3 days ago
- The Verge · 0 points · 12 days ago
- I have some questions for Mark Zuckerbergtheverge.comThe Verge · 0 points · 6 days ago
- Hacker News · 1 points · 6 days ago