一:开设账号,生成appkey
联系工作人员,提供 boundId,测试环境 apns 证书,正式环境 apns 证书,生成 appkey。
二:集成 SDK
1.CocoaPods 集成
iPush 支持通过 CocoaPods 方式和手动集成两种方式。我们推荐使用 CocoaPods 方式进行集成,以便随时更新到最新版本。
在 Podfile 中添加以下内容。
pod 'iChat'
执行以下命令,安装 iPush。
pod install
如果无法安装 SDK 最新版本,执行以下命令更新本地的 CocoaPods 仓库列表。
pod repo update
2.主项目添加 Push Notifications 功能
在Target
中选择主项,点击右边的Signing & Capabilities
,点击+
,选择Push Notifications
选项。
授权协议
The MIT License (MIT)
Copyright (c) 2020 Adam
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.