此仓库包含了 Mapp iOS SDK,用于应用内消息。它是 Mapp SDK 推送通知的集大成。
Cocoa pods
target 'project_name' do
pod 'MappSDK'
pod 'MappSDKInapp'
end
或者
target 'project_name' do
pod 'MappSDK', :git => 'https://github.com/MappCloud/MappSDK.git', :tag => '6.0.5'
pod 'MappSDKInapp', :git => 'https://github.com/MappCloud/MappSDKInapp.git', :tag => '6.0.6.10'
end
手动
- 将
AppoxeeSDK.xcframework
拖放到您的项目中。 - 将
AppoxeeSDKResources.bundle
拖放到您的项目中。 - 将
AppoxeeInapp.xcframework
拖放到您的项目中。 - 将
AppoxeeInappResources.bundle
拖放到您的项目中。 - 将
UserNotifications.framework
链接到您的项目中。 - 将
WebKit.framework
链接到您的项目中。
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[Appoxee shared] engageAndAutoIntegrateWithLaunchOptions:launchOptions andDelegate:nil with:EMC_US];
[[AppoxeeInapp shared] engageWithDelegate:self 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)
AppoxeeInapp.shared()?.engage(with: self, with: .eMC_US)
return true
}