You can check the permissions of your app by going to the Settings menu of the device and selecting "Apps". Find your app in the list and select "Permissions". Here you should see if your app has permission to access the user's location.