AppoxeeInapp 4.1.1

AppoxeeInapp 4.1.1

测试已测试
语言语言 Obj-CObjective C
许可 自定义
发布最后发布2016年10月

Raz Elkayam 维护。



  • 作者:
  • Appoxee

Appoxee Inapp SDK

此仓库包含 Appoxee Inapp iOS SDK。

整合

Cocoa pods

target 'project_name' do
    pod 'AppoxeeInapp'
end

或者

target 'project_name' do
    pod 'AppoxeeInapp', :git => 'https://github.com/AppoxeeMobile/iosInappArtifacts.git', :tag => '4.1.1'
end

手动

  • AppoxeeSDK.framework 拖放到您的项目中。
  • AppoxeeSDKResources.bundle 拖放到您的项目中。
  • UserNotifications.framework 连接到您的项目中。
  • AppoxeeInapp.framework 和 .bundle 拖放到您的项目中。
  • AppoxeeInappResources.bundle 和 .bundle 拖放到您的项目中。

配置文件

请确保提供一个 AppoxeeConfig.plist 文件。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>sdk</key>
        <dict>
            <key>app_id</key>
            <string>XXXXX</string>
            <key>dmc_system_id</key>
            <integer>0</integer>
            <key>sdk_key</key>
            <string>XXXXXXX</string>
            <key>is_eu</key> <!-- Optional, indicate if account is EU / US -->
            <false/>
            <key>open_landing_page_inside_app</key> <!-- Optional, indicate if landing page should open inside the app or via Safari -->
            <false/>
        </dict>
        <key>inapp</key>
        <dict>
            <key>custom_fields</key> <!-- Optional -->
            <array>
                <string>customString</string>
                <string>customNumber</string>
                <string>customDate</string>
            </array>
            <key>media_timeout</key>
            <integer>10</integer>
        </dict>
    </dict>
</plist>

实现

Objective-C

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [[AppoxeeInapp shared] engageWithDelegate:nil];

    return YES;
}
- (void)somethingNeedsToBeEngagedWithInappMessaging
{
    [[AppoxeeInapp shared] reportInteractionEventWithName:@"eventName" andAttributes:nil];
}

Swift

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        AppoxeeInapp.shared()?.engage(with: nil)

        return true
    }
    func somethingNeedsToBeEngagedWithInappMessaging() -> Void {

        AppoxeeInapp.shared()?.reportInteractionEvent(withName: "eventName", andAttributes: nil)
    }

许可

http://www.appoxee.com/terms/