Ebizu SDK是一款强大的插件,您可以将其添加到您的应用中,以快速通过云连接和部署活动,并丰富应用中的位置信息。
1.1 要安装Ebizu SDK,下载最新的稳定版本Ebizu SDK存档.下载Ebizu SDK
1.2. Xcode与iOS开发工具包是使用Ebizu SDK构建iOS应用的必备条件。为了获得更好的体验,我们建议使用XCode 8或更高版本
1.3. 该SDK需要iOS 9.3或更高版本。
1.4. 在Xcode中打开您的项目。
1.5. 将“EbizuPublisher.framework”复制到您的项目目录中。
1.6. 确保勾选了“将项目中的文件复制到目标分组文件夹”
1.7. 点击完成按钮。
1.8. 确保您已将以下依赖框架添加到项目中
AdSupport.framework
CoreLocation.framework
1.1 初始化SDK 在您的AppDelegate.m中添加以下代码
#import "AppDelegate.h"
#import <EbizuPublisher/EbizuPublisher.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[EbizuManager sharedManager] setDebugMode:YES];
[EbizuManager initWithAppID:@"YOUR APP ID" withDevelopmentMode:NO];
return YES;
}
1.2 登录
#import <EbizuPublisher/EbizuPublisher.h>
...
EbizuUser *user = [[EbizuUser alloc] init];
user.name = @"USER NAME";
user.email = @"USER MAIL";
user.gender = @"female/male";
user.city = @"USER CITY";
user.country = @"USER COUNTRY";
[EbizuManager loginWithUser:user];
1.3 启动位置
#import <EbizuPublisher/EbizuPublisher.h>
...
[EbizuManager start];
我们随时乐意帮助您解决代码或其他关于平台的问题!您可以直接通过电子邮件联系我们:[email protected]