Why might an app close on its own when location permissions are denied?

Hello everyone
The app keeps closing if I don't grant location permission. I can't find the cause.
dsgsg
I want to give the user the option to work without this permission, with limited functionality.
One of the extensions I use is a locationsensor.

I think I've found a solution. Sorry for the inconvenience.
sffds

Now another problem - how to bring up the location permission menu again?

Once the user denied permission, use the ActivityStarter to open app settings

ActivityStarter.Action = android.settings.APPLICATION_DETAILS_SETTINGS
Call ActivityStarter.StartActivity

Taifun

2 Likes

I can't get it to work...


You are trying to do everything at the same time

Only try to get a location if permissions have been granted

The question was

The answer is to use the activity starter

Taifun

I did it this way: I instructed the user to manually grant location permission in the "About" settings.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.