Motti SDK
Motti SDK is an library written in Swift for proximity triggered based content. You can read more about Motti SDK at motti.com.
Requirements
- iOS 10.0+
- Xcode 8
- Get your api key from xretail.motti.com.
Integration
CocoaPods
You can use CocoaPods to install xMotti by adding it to your Podfile:
platform :ios, '10.0'
use_frameworks!
target 'MyApp' do
pod 'xMotti'
endManually
Download xMotti.framework and drag it into your project.
Configuration
- Include the
NSCameraUsageDescriptionNSLocationAlwaysAndWhenInUseUsageDescriptionNSLocationAlwaysUsageDescriptionNSLocationWhenInUseUsageDescriptionin yourInfo.plist. - Enable the
locationbackground mode.
Usage
Include this lines in your AppDelegate.swif.
import xMottixMotti.initialize(apiKey: "XXXXXXXXXXXXXXXXXXXX", delegate: nil);
xMotti.requestLocationAlwaysPermission();
xMotti.requestNotificationPermission();
xMotti.start();About App Store builds
Our framework includes both slices for simulator and device architectures. There is an know issue in Xcode that does not correctly strip the unnecessary architectures from a 'fat binary' framework's when your are uploading your builts. To work around this, we encourage you to include the following shell script (provided by the Realm project) as a Build Phase in your project to strip the unnecessary slices from your application.
Support
Don't hesitate to contact us at [email protected]