What you will learn

This tutorial will teach you how the SDK helps you to manage the location permission.

Pre-requisites - What you need to get started

The SDK Location Permission management

By default, the SDK asks for the location permission when the application starts.

To disable this feature:

  • Create a connectplace-settings.plist document
  • Add the parameter askLocationPermissionAtStart as Boolean
  • Set the askLocationPermissionAtStart value to NO

Warning:

Once this feature is disabled, do not forget to manually ask for the location permission using the requestAlwaysAuthorization method of the CLLocationManager otherwise the SDK can't detect any zones.

Switch to Swift

[locationManager requestAlwaysAuthorization];
locationManager.requestAlwaysAuthorization()