mwkirk / javapns

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

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

Closed mwkirk closed 11 years ago

mwkirk commented 11 years ago

Original author: bsbi...@googlemail.com (March 01, 2013 17:00:29)

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: http://code.google.com/p/javapns/issues/detail?id=170

mwkirk commented 11 years ago

From sype...@gmail.com on March 01, 2013 17:15:33 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.

mwkirk commented 11 years ago

From bsbi...@googlemail.com on March 01, 2013 20:02:49 thanks! that works like a charm

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

thanks Bobby

mwkirk commented 11 years ago

From sype...@gmail.com on March 01, 2013 20:13:56 I don't have any numbers for that, sorry..

Closing support request.