类似的Andr​​oid iOS中的权限 [英] Android like permissions in iOS

查看:131
本文介绍了类似的Andr​​oid iOS中的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android的,你的GPS定义权限,短信发送,位置,...,清单文件中。 有没有在iOS的anythiing similiar,这样用户就会知道安装目录之前,一些应用程序使用哪些功能的手机? 或者是应用程序在使用过程中,用户发出警告时,有些功能要使用的东西(如GPS,短信......)?

In android, you define permissions for gps, sms sending, location , .., in the manifest file. Is there anythiing similiar in the iOS, so the user would know what capabilities of the phone some app uses before instalation? Or is the user warned during app use when some function wants to use something (e.g. gps, sms...)?

推荐答案

在iOS的声明应用程序的要求在其清单,如的Info.plist 。但不使用这些信息来询问用户的权限,只为确保设备的兼容性。

In iOS you declare your application requirements in its manifest-like Info.plist. But this information is not used to ask user permission, only for ensuring device compatibility.

只有通知和位置服务需要用户的许可,这是自动要求用户在第一次应用程序尝试使用相应的API。

Only Notifications and Location Services require user permission, which is automatically asked to the user the very first time your application attempt to use the corresponding API.

我的猜测是,许多其他的权限是通过苹果商店许可协议已授予,用户必须接受,不像安卓的(我想你可以安装一个应用程序,而无需使用市场心不是?这改变了很多从法律的角度来看)

My guess is that many other permissions are already granted via the Apple Store license agreement, that the user must have accepted, unlike Android (I guess you can install an app without using the market isnt? which changes a lot from a legal point of view)

这篇关于类似的Andr​​oid iOS中的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆