You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p.s.: Yes, my code does loop with "$pushManager->add($push);" and does send only once after the loop with "$pushManager->push();". this is not the cause.
foreach ($todolive as $val) {
$push = new Push($apnsAdapterlive, $val[0], $val[1]);
$pushManagerlive->add($push);
}
$pushManagerlive->push();
The text was updated successfully, but these errors were encountered:
experiencing the same issue. had to create a designated request url and snd push via an async call using curl request to it as a workaround. Any pull requests or some sort?
I am having performance trouble with this implementation.
Data suggests, that the connections are not properly reused.
small sample:
1 message 1.59917497635s
5 messages: 5.86858487129s
4 messages: 4.87945485115
I build my own quick and dirty implementation based on simplepush.php from here:
(http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1)
and the comments here:
(http://stackoverflow.com/questions/14563097/sending-multiple-iphone-push-notifications-apns-php-tutorial)
Performance data is almost constant no matter how many messages:
1: 0.842793564642
4: 0.841887950897
5: 0.855985164642
Can anyone confirm or debunk?
p.s.: Yes, my code does loop with "$pushManager->add($push);" and does send only once after the loop with "$pushManager->push();". this is not the cause.
The text was updated successfully, but these errors were encountered: