mwkirk / javapns

Test import of svn javapns repo from Google Code
3 stars 0 forks source link

Push alert - Latency #127

Closed mwkirk closed 11 years ago

mwkirk commented 11 years ago

Original author: rejahan...@gmail.com (June 14, 2012 21:31:58)

This is not a problem, but I was just checking the latency in calling a push.alert(). It looks like there is a 6 seconds lag until the method returns. Is this normal? Is there way

What steps will reproduce the problem?

  1. Any push.alert, badge or sound() calls.

What do you see? 6 seconds method return turnaround time.

What version of the product are you using? On what operating system? mac os x, latest stable release.

Please provide any additional information below. Just checking if notifications can be sent faster.

Thanks

Original issue: http://code.google.com/p/javapns/issues/detail?id=127

mwkirk commented 11 years ago

From sype...@gmail.com on July 02, 2012 22:32:18 The delay is normal, to allow the service to return error-response packets (if any). The amount of time the library waits for error-response packets was carefully tuned after numerous APNS behavior tests.

If you have multiple notifications to send however, you should NOT be pushing each one individually (which I'm assuming you are doing since the delay is a problem for you). Refer to the documentation on how to push multiple notifications without opening-waiting-closing connections all the time...