Log In

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:

Key
REQUEST_NOTIFICATIONS_PERMISSION
Type
Boolean
Value
0
:warning: important: This key is supported in the MOCA iOS SDK version 3.2.0+

Disable location permissions request:

Key
LOCATION_PERMISSION_REQUEST_MODE
Type
String
Value
Disabled

Once the user has granted permission. Enable location dependent services:

[MOCA setProximityEnabled:YES]
[MOCA setGeoTrackingEnabled:YES]

🚧

Location permission

Location permission "Always" is required in order to be able to detect geofences and bluetooth beacons.