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

Related topics