You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Hello admin.
I checking android 12 and have a problem:
In android 12. App must request both permission ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION
@NeedsPermission(
Manifest.permission.ACCESS_FINE_LOCATION,
Manifest.permission.ACCESS_COARSE_LOCATION
)
fun getLocation() {
// Code here
}
@OnPermissionDenied(Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION)
fun getLocationDenied() {
// Code here
}
When I choose option Approximate -> While using the app
Actual results: OnPermissionDenied called. Expected results : getLocation() will call
=> Reason: method verifyPermissions in class PermissionUtils checking.
Checks all given permissions have been granted.
Params:
grantResults – results
Returns:
returns true if all permissions have been granted.
Please help me.
The text was updated successfully, but these errors were encountered:
Location permission android 12
-- Hello admin.
I checking android 12 and have a problem:
In android 12. App must request both permission ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION
My code:
When I choose option Approximate -> While using the app
Actual results: OnPermissionDenied called.
Expected results : getLocation() will call
=> Reason: method verifyPermissions in class PermissionUtils checking.
Please help me.
The text was updated successfully, but these errors were encountered: