AndPermission icon indicating copy to clipboard operation
AndPermission copied to clipboard

Android10中请求定位权限,选择仅使用期间允许,onDenied

Open SmithYim opened this issue 4 years ago • 2 comments

手机型号:荣耀V10 品牌系统版本:EMUI 10.0 Android系统版本:Android10 targetSdkVersion: 29 权限:Permission.Group.LOCATION 定位权限请求时会走onDenied方法,低版本会走正常流程

SmithYim avatar May 11 '20 03:05 SmithYim

是哦,怎么解决的?

csh159 avatar May 20 '20 02:05 csh159

只请求ACCESS_FINE_LOCATION和ACCESS_COARSE_LOCATION,不要请求ACCESS_BACKGROUND_LOCATION就没有问题了

AndPermission.with(this) .runtime() .permission(Permission.ACCESS_FINE_LOCATION, Permission.ACCESS_COARSE_LOCATION)

chenxihoulang avatar Jun 19 '20 09:06 chenxihoulang