Upgrading to MOCA SDK 1.3 - mocaplatform/moca-ios-sdk GitHub Wiki
The MOCA SDK v1.3 is now available.
The MOCA SDK v1.3 provides built-in support for iOS 8. With this new feature, you can add MOCA Platform services to your iOS 6, 7 and 8 apps for iPhone/iPad devices.
Version 1.3 of the MOCA SDK for iOS contains the following changes since the last release:
- Improved geo-location tracking with low battery usage
- Geofence entry/exit experiences with support for more 20 geofences (beyond iOS limit)
- Beacon/Zone/Place analytics
- Automatic geo analytics
- Passbook actions support
- To upgrade your app integrated with previous version of MOCA SDK, first download latest stable version of MOCA SDK archive v1.3.
- Xcode 6 with the iOS development kit is recommended to build an iOS app using MOCA SDK v1.3.
- The SDK requires iOS 6.0, 6.1, 7.0, 7.1, or 8.0.
- Unzip the archive.
Once downloaded the SDK, you’ll need to add it to your project.
- Open your app project in Xcode.
- Remove existing SDK from your app project.
- Navigate to where you downloaded the SDK and drag the
mocasdk.framework folder
into your project in Xcode. - Make sure Copy items into destination group's folder is selected.
- Press the Finish button.
- Ensure that you have added to your project the following dependent frameworks:
- AudioToolbox.framework
- CoreTelephony.framework
- MobileCoreServices.framework
- SystemConfiguration.framework
- CoreLocation.framework
- libsqlite3.0.dynlib
- CoreBluetooth.framework (since 1.3)
- PassKit.framework (since 1.3)
To do this, select your project file in the file explorer, select your target, and select the Build Phases sub-tab. Under Link Binary with Libraries, press the + button, to select and add all required frameworks.
In XCode 6, ensure you add mocasdk.framework
into Embedded Binaries
section General tab of your app target.
- Finally, if your app targets iOS 8, you must add NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription key to your project’s Info.plist containing the message to be displayed to the user at the prompt.
For example:
<key>NSLocationAlwaysUsageDescription</key>
<string>This app will use your location information to identify nearby places and to notify you about available proximity experiences.</string>
If you want to help with the MOCA iOS SDK, contact [email protected].