disable hardware permissions

I’m doing an App that only needs GPS to calculate routes, but the app still works without those permissions.

I was going to build an ON/OFF GPS button so people can activate that options if they want.

Request “Location” permission is done.

Request again the “Location” permission if it was not granted by the user, is also done.

But i didn’t found anything about removing that permission.

After I agree with “Location” permission, it will not show the pop-up again to ask if i want the permission or not.

How can i get that pop-up again? if that’s not possible how do

I reset or remove the hardware permissions user gave so i can ask him again?

regards,

Carlos.

On iOS you can remove the permission in the Settings app. Generally once granted you don’t want to make it easier to ungrant it. I’m assuming Android has a similar settings system.

Rob

Thx Rob for your answer. Android you can remove the permission outside the app, like in IOS. My question is not outside the app. It’s inside the app. 

If corona can change the permission inside the app to “ON”, why can’t it turn it “OFF”? Or if it can, how?

I don’t use Android on a day-to-day basis, but I’ve never seen an iOS app offer a way to disable permissions that didn’t involve opening the settings app the few times I’ve seen it.

Rob

I just want to open the dialog box to change the state. In corona it will only shows if you don’t have the permission “ON”, if you already have it it will not show.

https://developer.android.com/training/location/change-location-settings

Reading that document it sounds like if permissions have already been granted, the location services will continue and work. If permissions have not been granted then it will prompt for them. This is how Corona currently works. I read over that link a few times and I didn’t see anything about enabling the user to turn off permissions.

Rob

On iOS you can remove the permission in the Settings app. Generally once granted you don’t want to make it easier to ungrant it. I’m assuming Android has a similar settings system.

Rob

Thx Rob for your answer. Android you can remove the permission outside the app, like in IOS. My question is not outside the app. It’s inside the app. 

If corona can change the permission inside the app to “ON”, why can’t it turn it “OFF”? Or if it can, how?

I don’t use Android on a day-to-day basis, but I’ve never seen an iOS app offer a way to disable permissions that didn’t involve opening the settings app the few times I’ve seen it.

Rob

I just want to open the dialog box to change the state. In corona it will only shows if you don’t have the permission “ON”, if you already have it it will not show.

https://developer.android.com/training/location/change-location-settings

Reading that document it sounds like if permissions have already been granted, the location services will continue and work. If permissions have not been granted then it will prompt for them. This is how Corona currently works. I read over that link a few times and I didn’t see anything about enabling the user to turn off permissions.

Rob