Segment-WebEngage 1.2.4

Segment-WebEngage 1.2.4

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布上次发布2023年8月

Saumitra BhaveYogesh SinghWebEngage 维护。



 
依赖
WebEngage>= 0
分析>= 0
 

Segment-Integration-iOS

Version License Platform LastUpdated

WebEngage 为 Segment 的 analytics-ios SDK 提供集成。

更多信息请查看此处

安装

要安装 Segment-WebEngage 集成,只需将以下行添加到您的 Podfile

# Avoid use_frameworks! declaration in your Podfile
pod "Segment-WebEngage"

使用

添加依赖后,您必须使用我们的 SDK 注册该集成。为此,在您的 AppDelegate 中导入 WebEngage 集成

#import <Segment-WebEngage/WEGSegmentIntegrationFactory.h>

并将以下行添加到 AppDelegate 的 application:didFinishLaunching:WithOptions: 方法中

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    //Initialize Segment
    SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"XXXXXXXXXXXXXXXXXXXXXXXXXXX"];

    //Additional Segment Configuration
    configuration.trackApplicationLifecycleEvents = NO; // Enable this to record certain application events automatically!
    configuration.recordScreenViews = NO; // Enable this to record screen views automatically!

    //Register WebEngage Integration With Segment
    [configuration use:[WEGSegmentIntegrationFactory instanceWithApplication:application launchOptions:launchOptions]];

    [SEGAnalytics setupWithConfiguration:configuration];

    return YES;
}

推送通知

请遵循我们的iOS推送通知文档

应用内通知

不需要进行任何进一步的操作以集成应用内消息。

高级集成

有关高级集成选项(如应用内回调和手动推送注册)的更多信息,请访问高级部分文档。您可以在Segment-WebEngage的WEGSegmentIntegrationFactory类中找到类似的方法。

示例应用

WebEngage已经创建了一个集成了通过Segment的WebEngage的iOS示例应用。可在本仓库的示例文件夹中查看。

更多详情请查看此处的文档。