0

Should and event store's requestAccess(to:completion:) be called

  • as early as possible (e.g. in application(_:didFinishLaunchingWithOptions:)

  • only before EKEventSource should be used for the first time?

Does Apple recommend one or the other option (for iOS 10)?

Drux
  • 11,992
  • 13
  • 66
  • 116

1 Answers1

0

Why nag the user any sooner than necessary?

A user will be more comfortable if the request for permission comes when they actually try to do something they know requires access to the event store.

If you request permission too soon, the user is going to wonder why the app is asking when they haven't even done anything with the app yet.

And what if your app needs access to multiple sources such as camera, photo library, contacts, and events? It would be terrible to just nag the user over and over for all of them up front. Only ask when the source is actually needed and the user probably fully understands that the action they just took (like take photo) requires the specific permission.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
  • I have the same hunch. Are you sure that Apple does not the contrary (for some possible other reasons)? – Drux Oct 01 '16 at 23:17
  • I have an app that needs lots of different permissions depending on what the user does and I wait until the first need to request permission. Apple's been fine with that for years. – rmaddy Oct 01 '16 at 23:18