As i understand, i have to ask user for foreground location permission first, and then after giving permission i have to ask again for a background permission...
Steps to reproduce
in build.gradle change targetSdkVersion 30 and compileSdkVersion 30
use emulator API 30
just copy to mainActivity and call requestAccessFineLocation() from onCreate(...)
Expected behaviour
Show the same permission dialog as in API 29
Actual behaviour
Nothing happens. Permission dialog is being ignored
https://developer.android.com/training/location/permissions#request-background-location
As i understand, i have to ask user for foreground location permission first, and then after giving permission i have to ask again for a background permission...
Steps to reproduce
in build.gradle change
targetSdkVersion 30
andcompileSdkVersion 30
use emulator API 30just copy to mainActivity and call requestAccessFineLocation() from onCreate(...)
Version of the library
implementation 'com.karumi:dexter:6.2.2' or implementation 'com.karumi:dexter:4.2.0' (i changed withContext(...) to withActivity(...))