0

As the question asks.

I'm looking for a guide on permissions. I've only developed for Android before and I was wondering if there was a guide similar to http://developer.android.com/guide/topics/security/permissions.html

I'm not entirely sure how permissions work (or if they're even called this on iOS 6).

Cœur
  • 37,241
  • 25
  • 195
  • 267
Sheldon
  • 9,639
  • 20
  • 59
  • 96
  • http://adcdownload.apple.com//wwdc_2012/wwdc_2012_session_pdfs/session_710__privacy_support_in_ios_and_os_x.pdf – rocky Oct 25 '12 at 23:57

1 Answers1

1

You don't have permissions the way you do on Android, as in you must declare them some where on for hand.

When you, for example, start the locationmanager, the system will ask the user if your app is allowed to receive location updates. If the user does not allow this the the CLLocationManager will call the delegate that it could not retrieve any location updates.

There is also a methods on CLLocationManager called authorizationStatus to check the current status. This is an CLAuthorizationStatus.

Every other component will have a simulare kind of methods and error to check wether the user allows your app to acces data.

rckoenes
  • 69,092
  • 8
  • 134
  • 166
  • So is there no comprehensive place or guide that lists the components that will ask the user for permission? I'm basically after components that may require permission from the user to access data. – Sheldon Oct 25 '12 at 08:46
  • No there is no such thing on iOS. What kind of data are you after. Apple has really strict guidelines on getting user data. – rckoenes Oct 25 '12 at 08:47
  • I'm writing a report and it would be really useful to know what kind of components required permissions. I was hoping there would be some sort of mapping from the permissions to the components or vise versa. – Sheldon Oct 25 '12 at 08:56
  • Well not that I'm aware of, you could have look at the documentation at Apple's developers site. But there is just less user data you can access on iOS then Android. To my knowledge location, social networks, address book, Calendar, reminders, bluetooth and camera/images thats it. You can check then in privacy section of the settings app. – rckoenes Oct 25 '12 at 09:00