Hello,
My application worked fine with API 26 all time. However now with API 29 it stops getting GPS location while phone is locked.
B4A version is 10.0
SDK is android-29
My manifest contains:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="29"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
Also on app start I'm requesting PERMISSION_ACCESS_FINE_LOCATION via RuntimePermissions library. However it allows to get location only while application is activate. I can not use ACCESS_BACKGROUND_LOCATION via RuntimePermissions. Then I go manually to App info/Permissions/Location and set "Allow all the time". However it still does not get location while phone it locked.
For getting location I'm using Foreground service with ESLocation2 library.
Any ideas?
Thank you
My application worked fine with API 26 all time. However now with API 29 it stops getting GPS location while phone is locked.
B4A version is 10.0
SDK is android-29
My manifest contains:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="29"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
Also on app start I'm requesting PERMISSION_ACCESS_FINE_LOCATION via RuntimePermissions library. However it allows to get location only while application is activate. I can not use ACCESS_BACKGROUND_LOCATION via RuntimePermissions. Then I go manually to App info/Permissions/Location and set "Allow all the time". However it still does not get location while phone it locked.
For getting location I'm using Foreground service with ESLocation2 library.
Any ideas?
Thank you