The functionality of my app relies on jQuery mobile and geolocation services.
Once the app requests the user's location, a prompt appears in the (Chrome) browser:
Example.com is requesting to access your physical location [allow] [deny]
My objective is to:
- If the user selects "Allow", function 1 will be triggered (location data will be used by the app).
- If the user selects "Deny", function 2 will be triggered (an address form will be displayed).
Is there a way to attach a function to handle the event triggered when the user clicks either the "Allow" or "Deny" button?