ApnsPHP
ApnsPHP copied to clipboard
I am using it in one of my app but found it seems taking lot of time in just sending push to 200 devices. I have around 200 entries in my database but it takes around 1 min or more. Can you please help me out on this? let me know If I am doing anything wrong. thanx
$apns->setWriteInterval(10000);
also, after sending check log for broken tokens. Broken tokens make much delay.
@digitalwander - can you show me how your code looked to send to multiple devices? I have a similar scenario Im trying to work through to send to multiple device tokens and keep time to a minimum. thanks!
@tamaker
$message = get_message();
$apns->add($message);
$message = get_message();
$apns->add($message);
$message = get_message();
$apns->add($message);
$apns->send();