[英]Why is android / google play asking for permissions for my react native application when my android version is 6+?
I have built a React Native application that works well and has been deployed on the stores for some months now, and some of my users reported that the Play Store was asking them for permissions BEFORE download whereas most of the apps nowadays dont. 我已经构建了一个运行良好的React Native应用程序,并且已经在商店中部署了几个月,而且我的一些用户报告说Play商店在下载之前要求他们提供权限,而如今大多数应用程序都没有。
My first reflex was to ask for their android version to know is their were Android 6 or more. 我的第一个反应是要求他们的Android版本知道他们是Android 6或更高版本。 And sure enough, they were.
可以肯定的是。 Then I tested with my phone which runs 7.0 and again I was asked for permissions right before download as with old versions of Android.
然后,我使用运行7.0的手机进行了测试,然后又像旧版本的Android一样,在下载之前再次被要求权限。
Here are the permissions I request : 这是我要求的权限:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="com.android.vending.BILLING" />
Is there something that I might be doing wrong ? 我可能做错了什么吗?
Feel free to request any additional info ! 随时要求任何其他信息!
You need your app to have targetSdk=23
(or greater) so Google API knows you support Runtime permissions. 您需要使您的应用具有
targetSdk=23
(或更高),以便Google API知道您支持运行时权限。 The tutorial and video on this page is pretty good. 此页面上的教程和视频非常不错。 Once you support runtime permissions, they will be asked for when they are needed, not when you download your app.
一旦您支持运行时权限,就会在需要它们时(而不是在您下载应用程序时)询问它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.