I have changed it to SDK 34 in my app as in the example.
Is it correct that this permission is requested again and again?
This is also the case in the example.
It will not show after the user selected this option.
If the user selects the second option - Allow only while using the app, then the example will still work as long as the tracker service was started while the app is in the foreground. This means that it will not work automatically after a device boot (see the code in StartAtBootReceiver).
If Starter.rp.Check(Starter.BACKGROUND_LOCATION_PERMISSION) = False Then
MsgboxAsync("Please allow app to always allow location services", "")
Wait For Msgbox_Result (unused As Int)
Dim in As Intent
in.Initialize("android.settings.LOCATION_SOURCE_SETTINGS", "")
StartActivity(in)
'catch the Activity_Resume event to prevent an endless loop if the user denies the permission.
Wait For Activity_Resume
End If
It will not show after the user selected this option.
If the user selects the second option - Allow only while using the app, then the example will still work as long as the tracker service was started while the app is in the foreground. This means that it will not work automatically after a device boot (see the code in StartAtBootReceiver).