Sometimes notification are not delivered

73 views
Skip to first unread message

niks...@gmail.com

unread,
May 5, 2013, 8:34:43 AM5/5/13
to apns...@googlegroups.com
Hello all,

Its been a frequent problem for sending notification. Notification which I send are not received many a times. One thing that came to my mind was payload size which I find in the following code and checked it is well below 256

                    $message = new ApnsPHP_Message($deviceToken);
                    $message->setBadge($badgeCount);
                    $message->setText($alertMesssage);
                    $message->setSound($soundFileName);
                    $message->setCustomProperty("custom", json_encode($customMessage));
                    $push->add($message);
                    Logger::getRootLogger()->info("Payload Length= ". strlen($message->__toString()));

I am using it for Chat functionality, any pointers why is it not received many a times. Is it because of expiry is not set, if yes then how can it help?


Thanks.

Reply all
Reply to author
Forward
0 new messages