原理
APNS:Apple Push Notification Service
20150603145448807.jpg- An app enables push notifications. The user has to confirm that he wishes to receive these notifications.
- The app receives a “device token”. You can think of the device token as the address that push notifications will be sent to.
- The app sends the device token to your server.
- When something of interest to your app happens, the server sends a push notification to the Apple Push Notification Service, or APNS for short.
- APNS sends the push notification to the user’s device.
Certificate(认证)
第三方服务选型
IM消息 与 推送
极光推送等提供的服务是“向所有/部分用户发一条通知/广告”等,相当于村委会“大喇叭”的作用。而融云等提供的则是即时通讯服务,是“点对点”的消息,相当于“打电话”。融云的服务似乎更复杂一些。
另外,IM消息的推送(如微信/qq那样的收到一条消息就“叮叮咚”)也是用的APNS这条路。(简单看了一下融云的文档,也要求上传一个认证的文件[跟极光推送要求上传的文件一样],从这一点可以看出来是APNS)。