
我正在尝试构建一个Android应用程序,当通过Google Playstore安装时,应该可以访问运行时权限,如SMS Access,Contacts,Location Service,而无需向用户询问.
我知道这是可能的,因为我已经看到它发生在Playstore上的几个AndroID应用程序中
Kotak 811 App
渣打银行业务
有谁知道即使手机运行AndroID Nougat也能实现这一目标.
@R_419_6120@:
How to grant runtime permissions to an androID application without prompting the user
AFAIK是不可能的
请阅读 Run Time Permissions
I am trying to build an androID application which when installed through Google Playstore should have access to the runtime permissions like SMS Access, Contacts, Location Service without asking the user for it.
比你必须使targetSdkVersion低于23
Does anyone kNow how this can be achIEved even when the phone is running AndroID Nougat.
这是不可能的,如果用户手动撤销危险权限,您的应用程序将崩溃
What are the disadvantages of doing
targetSdkVersionlower than 23
如果用户手动删除您的应用程序的权限,而不是您的应用程序在AndroID API 23及更高版本中崩溃
编辑
you will not be able to ship updates to your app on the Play Store starting later in 2018
Meet Google Play’s target API level requirement
总结以上是内存溢出为你收集整理的如何在不提示用户的情况下向Android应用程序授予运行时权限全部内容,希望文章能够帮你解决如何在不提示用户的情况下向Android应用程序授予运行时权限所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)