How to detect when user pressed the "allow" when user location is requested

Viewed 1579

I am creating an app which uses the user's current location. At first run, after the user is prompted to allow or deny the app to use it's location, I want to do stuff when the user pressed the "allow" button. Is there a way to detect when the user has pressed the "allow" button?

3 Answers
Related