lksudha / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

Handle a large amount of push notes with different messages #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 

This is a support request (not sure if its the right place or not)

We are using JavaPNS and it works well for the majority of our uses cases

However we know want the ability to send customized push notes to our users. 
Before we would send out the same message text but now this will have user 
specific data. 

We were using the multi threading option to improve performance but this relies 
on sending the same message to all users

https://code.google.com/p/javapns/wiki/PushNotificationAdvanced

We do not want to create a SSL connection everytime to send one message just 
because the text is different

Anyone has experience of this use case?

Regards
Bobby

Original issue reported on code.google.com by bsbi...@googlemail.com on 1 Mar 2013 at 5:00

GoogleCodeExporter commented 9 years ago
The Push.payloads method is designed specifically for that.

If you take a look at the documentation 
(https://code.google.com/p/javapns/wiki/PushNotificationBasic), you will see 
the 'payloadDevicePairs' parameter for the 'payloads' methods.  It accepts 
lists of PayloadPerDevice objects, essentially allowing you to send customized 
messages to multiple devices in one single pass.

Original comment by sype...@gmail.com on 1 Mar 2013 at 5:15

GoogleCodeExporter commented 9 years ago
thanks! that works like a charm

In terms of push notes per second, what's a typical figure JavaPNS can handle?

thanks
Bobby

Original comment by bsbi...@googlemail.com on 1 Mar 2013 at 8:02

GoogleCodeExporter commented 9 years ago
I don't have any numbers for that, sorry..

Closing support request.

Original comment by sype...@gmail.com on 1 Mar 2013 at 8:13

GoogleCodeExporter commented 9 years ago
Going beyond 20 payload device pairs, response time shoots upto 25 secs. How to 
reduce that?

Original comment by compchap...@gmail.com on 4 Oct 2013 at 8:15