Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #69

Open
digitalwander opened this issue Oct 27, 2014 · 3 comments

Comments

@digitalwander
Copy link

No description provided.

@digitalwander digitalwander changed the title Hi, 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 Oct 27, 2014
@ghost
Copy link

ghost commented Nov 19, 2014

$apns->setWriteInterval(10000);

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

@tamaker
Copy link

tamaker commented Mar 4, 2015

@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!

@ghost
Copy link

ghost commented Mar 13, 2015

@tamaker

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

$apns->send();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants