Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The permission android.permission.READ_PHONE_STATE is not registered in manifest.xml #663

Open
yongnengwang opened this issue Apr 28, 2021 · 0 comments

Comments

@yongnengwang
Copy link

android 11 Permission的心特性,READ_PHONE_STATE只支持到 sdk29。
AndPermission的Runtime类中的checkPermissions会因为sManifestPermissions.contains(p)判断抛出异常。我现在调用的时候判断android sdk版本,小于30的申请READ_PHONE_STATE 否则申请READ_PHONE_NUMBERS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant