问题
How does it work? do these service also send push notification to a mobile device iphone/android? (even if the device is switched off?)
回答1:
How does it work?
PubNub focus on HTTP connectivity (streaming, long-polling, polling etc.) that will work on all devices and anywhere.
Pusher use WebSocket between the client (web browser, mobile, tablet, desktop, any web-enabled device) and their service. They offer HTTP fallback for older devices or on networks that interfere with WebSocket connectivity.
do these service also send push notification to a mobile device iphone/android?
Both services support the ability to push data from one device to another via their service. This functionality is not the same type of functionality as Apple Push Notifications (APN), Google Cloud Messaging (GCM) or Microsoft Notification Protocol (MNP).
Only PubNub support native Push Notifications.
PubNub offer a larger number of client SDKs.
Pusher have a number of client libraries for mobile devices including Android and iPhone (iOS).
(even if the device is switched off?)
PubNub offer a form of message history for messaging delivered by mobile/web data connectivity. So upon reconnection missed messages will be delivered.
Pusher do not presently offer this functionality. So any messages that are sent during periods where the client is disconnected are lost.
If you use PubNub and their native Push Notification support then you get the delivery guaranteed by the underlying notification network that's used (Apple, Google or Microsoft).
来源:https://stackoverflow.com/questions/9137735/pubnub-com-and-pusher-com-does-it-send-push-notification-to-mobile