$apns->queueMessage(); // APPLE APNS EXAMPLE 3 $apns->newMessage(1); $apns->addMessageAlert('You got your emails.'); $apns->addMessageBadge(9); $apns->addMessageSound('bingbong.aiff'); $apns->addMessageCustom('acme1', 'bar'); $apns->addMessageCustom('acme2', 42); $apns->queueMessage(); // APPLE APNS EXAMPLE 4 $apns->newMessage(1, '2010-01-01 00:00:00'); // FUTURE DATE NOT APART OF APPLE EXAMPLE $apns->addMessageAlert(NULL, NULL, 'GAME_PLAY_REQUEST_FORMAT', array('Jenna', 'Frank')); $apns->addMessageSound('chime'); $apns->addMessageCustom('acme', 'foo'); $apns->queueMessage(); // APPLE APNS EXAMPLE 5 $apns->newMessage(1); $apns->addMessageCustom('acme2', array(5, 8)); $apns->queueMessage(); // SEND MESSAGE TO MORE THAN ONE USER $apns->newMessage(array(1,3,4,5,8,15,16)); $apns->addMessageAlert('Greetings Everyone!'); $apns->queueMessage(); */ // SEND ALL MESSAGES NOW $apns->processQueue();