This repository contains the Mapp iOS SDK.
Cocoa pods
target 'project_name' do
pod 'MappSDK'
end
OR
target 'project_name' do
pod 'MappSDK', :git => 'https://github.com/MappCloud/MappSDK.git', :tag => '6.0.7'
end
Manual
- Drag and drop the
AppoxeeSDK.xcframework
to your project. - Drag and drop the
AppoxeeSDKResources.bundle
to your project. - Link
UserNotifications.framework
to your project.
Make sure to provide an AppoxeeConfig.plist
file.
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>inapp</key>
<dict>
<key>custom_fields</key>
<array>
<string>customString</string>
<string>customNumber</string>
<string>customDate</string>
</array>
<key>media_timeout</key>
<integer>5</integer>
</dict>
<key>sdk</key>
<dict>
<key>app_id</key>
<string>263177</string>
<key>dmc_system_id</key>
<integer>55</integer>
<key>sdk_key</key>
<string>5c59a5b6b52eb2.62524838</string>
<key>jamie_url</key>
<string>jamie-test.shortest-route.com</string>
<key>is_eu</key>
<true/>
<key>open_landing_page_inside_app</key>
<false/>
</dict>
</dict>
</plist>
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[Appoxee shared] engageAndAutoIntegrateWithLaunchOptions:launchOptions andDelegate:nil with:EMC_US];
return YES;
}
Swift
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
Appoxee.shared()?.engageAndAutoIntegrate(launchOptions: launchOptions, andDelegate: nil, with: .EMC_US)
return true
}