简体   繁体   English

当我的android版本为6+时,为什么android / google play会请求我的react native应用程序的权限?

[英]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.

相关问题 为什么Google Play商店不在我的清单中要求权限? - Why is the Google Play Store asking for permissions not in my Manifest? 为什么我的应用程序在 react native 中的发布版本安装在物理 android 设备上时无法打开? - Why the release version of my app in react native fails to open when installed on a physical android device? 我的 android 应用程序在 Google Play 商店中被拒绝 - My android application rejected in google play store 使用 React Native 构建的 Android 应用程序和 Expo 仍在请求应用程序权限 - Android app built with React Native and Expo still asking for app permissions 当我在 onCreate 方法中编写必要的代码时,为什么我的 Android 应用程序没有要求用户允许存储权限? - Why isn't my Android app asking the user to allow storage permissions when I wrote the necessary code in the onCreate method? Azure DevOps 管道来构建和部署我的原生 Android 应用程序 Google Play 商店或 App Center 作为 App Bundle - Azure devops pipeline to build and deploy my native Android application Google Play store or App Center as App Bundle 如果我的Android APK Bundle被称为45 MB,那么当我的应用程序到达Google Play商店时,它的大小是多少? - If my Android APK Bundle is say 45 MB will that be the size of my application when it hits Google Play Store? Android:我请求权限的问题。 里面的代码 - Android: Issues with my asking for permissions. Code inside Android v6权限-我的SDK的询问权限 - Android v6 permissions - Asking permission for my SDK 我的Android应用的Alpha版本在Google Play中不可用 - Alpha version of my Android app not available in Google Play
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM