-
Notifications
You must be signed in to change notification settings - Fork 0
Project configuration
zioolek edited this page Nov 16, 2017
·
1 revision
Since iOS 8.0 it is required to add an entry to the Info.plist file that indicates wich location authorization is required by your app:
- To use the "Always" mode add the
NSLocationAlwaysUsageDescription
key. - To use the "When In Use" mode then add the
NSLocationWhenInUseUsageDescription
key.
The Indoor Location SDK can work with both mode as it based on iBeacon ranging, which is basically a foreground only feature.
You also need to call the corresponding CoreLocation method before starting the Ubudu Indoor Location manager.
-
When In Use mode:
[[[CLLocationManager alloc] init] requestWhenInUseAuthorization];
-
Always mode:
[[[CLLocationManager alloc] init] requestAlwaysAuthorization];
See Apple CoreLocation documentation for more details.