Hi everyone,
I discovered something going wrong in runtimepermissions when reverting to android 28 (android.jar).
I have two runtimepermissions "check and request" for Location in activity create sub and following these two I call a sub to locate position with GPS library and then if GPS location was not successful I locate with esLocation2 with network.
Here is the code in Activity_Create:
When I first install the app (Release obfuscated) it does not show the check for permission dialog and shows an error saying that the user has not permitted the use of its location when getting in the LocatePosition sub. If I start it with debug and set a breakpoint in the first runtime permission request then the permission dialog shows and by authorizing the permission everything works perfect.
My B4A version is 7.80.
Any suggestions?
Thanks in advance
I discovered something going wrong in runtimepermissions when reverting to android 28 (android.jar).
I have two runtimepermissions "check and request" for Location in activity create sub and following these two I call a sub to locate position with GPS library and then if GPS location was not successful I locate with esLocation2 with network.
Here is the code in Activity_Create:
B4X:
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
rp.CheckAndRequest(rp.PERMISSION_ACCESS_COARSE_LOCATION)
LocatePosition
When I first install the app (Release obfuscated) it does not show the check for permission dialog and shows an error saying that the user has not permitted the use of its location when getting in the LocatePosition sub. If I start it with debug and set a breakpoint in the first runtime permission request then the permission dialog shows and by authorizing the permission everything works perfect.
My B4A version is 7.80.
Any suggestions?
Thanks in advance