APNS
2016-06-07 14:05:33 0 举报
APNS
作者其他创作
大纲/内容
iOS
Your APP1. App ID2. Provisioning Profile3. Device Token
APNSServer
OS asks APNS for a device token
Your Server1. SSL Certificate2. Private Key
Step 5: APNS sends notification to your app
Step 3: App sends token to your server
Step 4: Your server sends notification to APNS
Step 2: App receives device token
Step 1: App that registers for push notifications
1. 创建一个Xcode工程及新的App ID(工程及app id的对应的bundle id需相同)2. 配置App ID可使用APNS,上传CSR文件3. 在苹果系统上通过钥匙串访问,创建所需的CSR文件4. 生成证书(测试使用dev证书,发布使用production证书)5. 生成对应的provisioning profile6.配置服务器
1. APNS服务免费,只要由开发者账号即可申请APNS证书2. 苹果对信息推送可靠性不做保证3. 消息不能超过256字节
0 条评论
下一页