iOS 13 and MOCA SDK

iOS 13 and MOCA SDK

MOCA iOS SDK has been tested on BETA versions of iOS 13. Find the version notes below:

- MOCA SDK for iOS uses the CoreBluetooth framework in order to monitor bluetooth status. In iOS 13 the mere fact of using any of the CoreBluetooth methods will invoke a prompt asking the user to grant permission to access device Bluetooth functionalities. It will show the string declared in the application `Info.plist` related to Bluetooth, as explained in "Bluetooth Usage Description" section below in these docs.

- The new iOS 13 Location APIs allow to use monitoring with the "When in use" permission, effectively allowing beacons and geofence detection when the app is in foreground. MOCA SDK already works around this limitation in versions prior to iOS 13, so this feature is already available no matter the iOS version the user has.

- Removal of the Bluetooth prompt and usage of new APIs to improve battery consumption in the foreground will be available soon in the newer versions of the MOCA SDK for iOS.

    • Related Articles

    • MOCA iOS SDK LOG_LEVEL Settings

      You can set a variety of logging levels for our SDK in the MOCAconfig.plist file, under the LOG_LEVEL variable:   LOG_LEVEL Description Off Log is turned off at SDK level. Error Shows only error events. Warning Shows only warning events. Info Shows ...
    • MOCA SDK Beacon detection engine latency

      The MOCA SDK detection engine differentiates between foreground and background, and works differently in iOS and Android. For Android, in the foreground it scans more aggressively and, using the Balanced profile, detect beacons within 5 seconds ...
    • Reading MOCA SDK Logs

      The logs related to the MOCA SDK are very helpful to find configuration errors. The log starts with these two lines: I/MOCA: Initializing MOCAPlugin I/MOCA: Init MOCA SDK, version x.x.x This shows that the plugin has started, and which is the version ...
    • Android 10 and MOCA SDK

      MOCA Android SDK has been tested in the Android 10 OTA. Find the notes for this version below: Android 10 introduces a new permission model where the user can choose between “When in Use” or “Always” location permission. The SDK works correctly with ...
    • Android Permissions Detailed for MOCA SDK

      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 ...