iOS Question Is it possible to modify Localization permission programmatically ? [OK]

igodese

Member
Licensed User
Hi all.
My App uses the localization services, but this is not mandatory.
The user can run the App even without localization services enabled, but for some special feature the GPS must be enabled.

Now, the problem is that if I "don't allow" the service at first use, there is no chance to propose again to the user to allow the service.

In my tests I had to reinstall the App in order to see again the selector and choose: "allow".

Is there a way to programmatically re-call the selector to "allow" / "don't allow" by means of button_Click event ?

Thanks in advance.
 

igodese

Member
Licensed User
Yes, "location", sorry.

Just to clarify, I intend the dialog that opens with the text contained in:
B4X:
#PlistExtra:<key>NSLocationWhenInUseUsageDescription</key><string>my text</string>
#PlistExtra:<key>NSLocationUsageDescription</key><string>my text</string>

If I correctly understood reading the post at the link you suggested, I can enter the App permissions menu tapping my GPS button; then the user can change his previous decision.

I will try asap.
Many thanks!
 
Upvote 0
Top