App with background location run under foreground permission as recommended
now failes on startup and gives the following error:
java.lang.SecurityException: Starting FGS with type location callerApp=ProcessRecord{8fce9ec 12241:mobi.moonc.anchorwatch/u0a374} targetSDK=34 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_LOCATION] any of the permissions allOf=false [android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION] and the app must be in the eligible state/exemptions to access the foreground only permission
Works with targetSdkVersion=33
Posted as requested sample by Erel in thread 161928 post 11
We are getting close to the August 31 deadline now if one have many apps to update.
now failes on startup and gives the following error:
java.lang.SecurityException: Starting FGS with type location callerApp=ProcessRecord{8fce9ec 12241:mobi.moonc.anchorwatch/u0a374} targetSDK=34 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_LOCATION] any of the permissions allOf=false [android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION] and the app must be in the eligible state/exemptions to access the foreground only permission
Works with targetSdkVersion=33
Posted as requested sample by Erel in thread 161928 post 11
We are getting close to the August 31 deadline now if one have many apps to update.