By default MOCA SDK will request both notifications and location ("Always") permission the first time it gets executed.
It is recommended that your application requests these permissions instead. In order to do so:
1 - Disable MOCA SDK permissions request:
Go to your
MOCAConfig.plist file and add / modify these keys:
important: This key is supported in the MOCA iOS SDK version 3.2.0+
Disable location permissions request:
Once the user has granted permission. Enable location dependent services:
[MOCA setProximityEnabled:YES] [MOCA setGeoTrackingEnabled:YES]
Location permission "Always" is required in order to be able to detect geofences and bluetooth beacons.