Zend_Mobile_Push_C2dmZend_Mobile_Push_C2dm provides the ability to send push notifications to Android devices that contain Google Services. A message will always be constructed with Zend_Mobile_Push_Message_C2dm. Pushing Messages
When implementing C2DM; you have a few components that you will utilize. Zend_Mobile_Push_C2dm which contains the server components and Zend_Mobile_Push_Message_C2dm which contains the message that you would like to send. Each message sent must do an HTTP request; so remember this when sending in large batches. The actual implementation of the code is fairly minimal; however, considerations to error handling must be taken.
Advanced MessagesC2DM provides the ability for sending more advanced messages; for instance the examples above show the most basic implementation of a message. Zend_Mobile_Push_Message_C2dm allows you to do far more advanced messaging outlined below. Delay While IdleIf included, indicates that the message should not be sent immediately if the device is idle. The server will wait for the device to become active, and then only the last message for each collapse_key value will be sent.
|