What is the equivalent of Android permissions in iOS development? [duplicate]

扶醉桌前 提交于 2019-12-11 03:30:01

问题


I am not sure how to search for this so even a bunch of keywords would be enough or +1 if someone can point me to the relevant documentation.

Android has approx. 122 permissions described here. What is the equivalent in iOS? Do developers declare permissions or can they access everything? If everything, where can I find what this "everything" entails?


回答1:


Although there are key differences in the way iOS and Android access the system, what Apple have done is to let you use some system resources (such as contacts or photos for example) and also register your app via some keys in a property list for using features such as background execution (for example a voip application that would like to listen for incoming calls). You can find all these options (keys) here.




回答2:


There is no manifest-like permission concept in iOS. You can access every public API, as long as it is not against the developer agreement, and if you do something wrong, your application will be rejected by Apple.




回答3:


There is no such thing in iOS unfortunately. You might interested in reading this article about the difference between iOS and Android on this particular point.




回答4:


There is no concept of "permissions" in iOS, there are certain things you are allowed to do and certain things you are not. You need not ask the user for access to these permissions.

I don't know of a specific list of things you are allowed to do, but the Review Guidelines should give you a good idea.




回答5:


There is no concept of permissions for iOS (iOS 5; may happen in iOS 6 but do not count on it). You can only access official API as approved by Apple. Use of any unofficial API is not permitted and as such will in most cases leads to your app being rejected for distribution in the AppStore.

The closest you will find to permissions in notifications you see when using Location. See more @: http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/TechnologyUsage/TechnologyUsage.html#//apple_ref/doc/uid/TP40006556-CH18-SW10

Regards, Bo



来源:https://stackoverflow.com/questions/10482385/what-is-the-equivalent-of-android-permissions-in-ios-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!