iOS Question Show settings->location programmatically

davemorris

Active Member
Licensed User
Longtime User
Hi Guys
Can someone advise how I can show the locations settings so they can be changed by the user at run time.

I have tried https://www.b4x.com/android/forum/threads/open-default-settings-app.51115/#content from 2015

which is
B4X:
    If App.OSVersion >= 8 Then
        App.OpenURL("app-settings:")
    End If

Which takes the user to a settings screen but the location setting (which I want the user to change) is grayed out.

Can anyone help?
Dave Morris
 

Semen Matusovskiy

Well-Known Member
Licensed User
I don't see any problem with app-settings. Actual value is really gray, but it's alive and you can change it

simulator_screenshot_47E4D9EF-EEF1-4800-8B72-385BE6D73240.png
 
Upvote 0

davemorris

Active Member
Licensed User
Longtime User
Hi, Semen Thanks the quick response.

You are correct - What had happened when testing my App, I had switched OFF Location Services (under Settings->Privacy) - This is, I believe, what caused the location setting to be grayed out for my App.

I was trying to test what the App (which requires location settings enabled) would do if the user had played with the settings.

Kind regards, and thanks again for the help.

Dave Morris
 
Upvote 0
Top