Urban Airship Adapter for Bluedot Point SDK
概述
Urban Airship 是一家美国公司,为领先的品牌提供市场领先的移动参与平台和数字钱包解决方案。 维基百科
入门
在 Podfile 中添加 'BluedotPointSDK-UrbanAirship', '~> 1.0',类似于以下内容:
target 'MyApp' do
pod 'BluedotPointSDK-UrbanAirship', '~> 1.0'
end
然后在您的终端内运行 pod install
,或者从 CocoaPods.app 运行。
安装 Cocoapods 后,将以下键值添加到您的应用 Info.plist 中
<plist version="1.0">
<string>ADD YOUR API KEY</string>
</plist>
不要忘记用您的 API 密钥替换值,并通过调用服务进行身份验证
UABluedotLocationServiceAdapter.shared().authenticate()
按照 Urban Airship iOS 设置文档 中的说明将 AirshipConfig.plist
添加到您的项目中
通过在 Info.plist 中包含 UIBackgroundModes
键以及远程通知值来启用后台推送,并将其设置为 必须的后台模式
和 远程通知
设置为 应用程序在推送通知的响应中下载数据
。
注意:您需要将 Apple Push Notification Service (APNs) 证书上传到 Urban Airship 门户。有关获取 .p12 证书的详细说明,请参阅 APNs 设置文档。
在您的应用程序中实现 UAPushNotificationDelegate
和 UABluedotLocationServiceAdapterDelegate
协议。分配这些实现,例如:
UAirship.push().pushNotificationDelegate = self
UABluedotLocationServiceAdapter.shared().delegate = self
要获取更多详细信息,请访问 Bluedot 文档 和 Urban Airship iOS SDK,并查看我们的 集成示例。
版权和许可
由 Bluedot Innovation 于 2018 年创建。版权所有 © 2018 Bluedot Innovation。保留所有权利。
通过下载或使用 Bluedot Point SDK for iOS,您同意 Bluedot 的 条款和条件、隐私政策 以及 计费政策,并承认这些条款适用于您使用和访问 iOS SDK 的方式和途径。