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.