Everything is running smoothly as I call navigator.geolocation.getCurrentPosition in my web app. Users are guided to a screen that explains the benefits of sharing their location, and once they press a button, the request is initiated without any issues.
However, in the scenario where a user selects "always grant this permission," I would prefer to bypass the explanation process and automatically retrieve their location. Is there a way to achieve something like this:
if (!navigator.geolocation.hasPermission)
navigator.geolocation.getCurrentPosition(etc, etc);
else
showMyLovelyReasonsWhy();
Thank you for your help!