ApnsPHP icon indicating copy to clipboard operation
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

Open digitalwander opened this issue 10 years ago • 3 comments

digitalwander avatar Oct 27 '14 08:10 digitalwander

$apns->setWriteInterval(10000);

also, after sending check log for broken tokens. Broken tokens make much delay.

ghost avatar Nov 19 '14 22:11 ghost

@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 avatar Mar 04 '15 17:03 tamaker

@tamaker

$message = get_message();
$apns->add($message);
$message = get_message();
$apns->add($message);
$message = get_message();
$apns->add($message);

$apns->send();

ghost avatar Mar 13 '15 13:03 ghost