Apptentive iOS SDK
Apptentive iOS SDK 提供了一个简单强大的渠道,用于在应用内部与您的客户进行沟通。
使用 Apptentive 功能来提高您应用的 App Store 评分,收集和响应客户反馈,在应用中的特定位置显示调查,更多。
查看我们的 快速入门指南,以尽可能快速地开始使用。
有关安装和使用 Apptentive 的完整信息,请参阅我们的 iOS 集成参考。
安装
可以使用 CocoaPods、Carthage 或手动作为 Xcode 子项目来安装 Apptentive。
在您的应用中使用 Apptentive
开始时,您需要 初始化 Apptentive SDK
@import Apptentive;
...
ApptentiveConfiguration = [ApptentiveConfiguration configurationWithApptentiveKey:@"<#Your Apptentive App Key#>" apptentiveSignature:@"<#Your Apptentive App Signature#>"];
[Apptentive registerWithConfiguration:configuration];
...
[Apptentive.shared engage:@"event_name", from: viewController];
或者在 Swift 中
import Apptentive
...
if let configuration = ApptentiveConfiguration(apptentiveKey: "<#Your Apptentive App Key#>", apptentiveSignature: "<#Your Apptentive App Signature#>") {
Apptentive.register(with: configuration)
}
...
Apptentive.shared.engage(event: "event_name", from: viewController)
稍后,在你的Apptentive仪表板上,您可以使用Apptentive功能,如消息中心、评分提示和调查来定位这些事件。
API文档
请参阅我们的客户学习中心获取Apptentive iOS SDK的API文档。
Apptentive的API变更日志也随着每个SDK的发布而更新。
测试Apptentive功能
请参阅Apptentive测试指南,了解如何测试评分提示、调查和其他Apptentive功能是否已正确配置。
Apptentive示例应用
要查看Apptentive iOS SDK如何与您集成示例,请查看此仓库中《Exemple》目录下的《iOSExample》应用。
示例应用展示了如何使用CocoaPods进行集成、设置Apptentive App Key和Apptentive App Signature、事件投放和消息中心的集成。更多信息请参阅《Exemple》目录下的《README.md》文件。
贡献
我们的客户端代码是完全开源的,我们欢迎对Apptentive SDK的贡献!如果您有一个改进或错误修复,请首先阅读我们的贡献协议。
问题报告
如果您在使用Apptentive SDK时遇到问题,请在GitHub上提交一个问题。
如果请求紧急,请联系mailto:[email protected]。