0

I want to be able to create my own view to allow location services from my iOS app. I've read here that it's possible to customise the description of the default iOS location services alert, but what I want is making my own view.

Is this possible? Thanks!

Community
  • 1
  • 1
FabKremer
  • 2,149
  • 2
  • 17
  • 29
  • I doubt it. The entire point of the approval view is that you have no control over it, and therefore cannot manipulate or bypass it to fool the user or bypass their consent. – Linuxios Feb 03 '15 at 15:40

2 Answers2

0

No, it is not possible. All you can/should do is popping it at the right time. You should make sure that user is informed that permission is really needed, according to several researches (yes, citation needed :) ).

EDIT: it pops up when you first call start monitoring/updating location method from your CLLocationManager instance. Since iOS8, you should call requestWhenInUseAuthorization or requestAlwaysAuthorization for it to pop up. Here you can find some very good ideas about it.

Mert Buran
  • 2,989
  • 2
  • 22
  • 34
0

Since you can not change the Apple Services Authorisations;

I would recommend you to create your custom view with "allow" & "dont allow" buttons. And than on "allow" pressed request apple permission witch will prompt the iOS or mac OS alert.

Though it seems not user-friendly. Apple users are used to this. Nobody will mind, and you will still show your own design. A lot of famous apps do that.

Timur X.
  • 161
  • 1
  • 7
  • That would be a good idea. So, how can I prompt the iOS location services alert whenever I want? – FabKremer Feb 04 '15 at 12:52
  • yes, you simply ask for location update, and if its a first time it will ask him. You should consider that this is managed through iOS Settings. – Timur X. Feb 05 '15 at 10:11