The MOCA SDK requests a variety of permissions, some of them being optional. Here is a breakdown of each permission and their effect on the SDK:
Permission | Explanation |
android.permission.INTERNET | Allows MOCA SDK to open network sockets so it has connectivity to the internet. |
android.permission.ACCESS_NETWORK_STATE | MOCA SDK uses it to track user connectivity and enforce the "WiFi Only" setting. |
android.permission.ACCESS_WIFI_STATE | Removing it will prevent MOCA SDK from scanning nearby Wi-Fi networks. Wi-Fi beacon feature won’t be available. |
android.permission.BLUETOOTH | MOCA SDK needs it in order to access Bluetooth hardware and scan for nearby bluetooth beacons. |
android.permission.BLUETOOTH_ADMIN | MOCA SDK needs it in order to use Bluetooth API calls to scan for nearby bluetooth beacons. |
android.permission.RECEIVE_BOOT_COMPLETED | Used in Android versions prior to 8.0 to automatically start up the MOCA SDK after the phone reboot. |
android.permission.WAKE_LOCK | Used in Android versions prior to 8.0 to prevent the CPU from sleeping while performing certain tasks such as Wi-Fi Network scanning or handling remote push notifications. |
android.permission.VIBRATE | Removing it will prevent MOCA SDK from providing haptic feedback for the received Experiences. |
android.permission.ACCESS_FINE_LOCATION | User granted. Removing it will prevent MOCA SDK from detecting, with fine location precision, geofences, bluetooth beacons, Wi-FI networks, and track location points. |
android.permission.COARSE_LOCATION | User granted. Removing it will prevent MOCA SDK from detecting geofences, bluetooth beacons, Wi-FI networks, and track location points with coarse location setting. |
android.permission.READ_PHONE_STATE | Required to read the full list of carriers of the SIM cards installed on the phone. |
android.permission.CHANGE_WIFI_STATE | Removing it will prevent MOCA SDK from scanning for Wi-FI Networks. |
com.google.android.c2dm.permission.RECEIVE | Required in order to receive remote push content from GCM / FCM. |