ryan
ryan

Reputation: 333

Push notifications to various devices through a common code

I have a requirement which is that I have to push the messages to various users who are using android or iphone devices.I know the individual process to send the push notification to android or iphone application.

Now my work is that I need to do the server side implementation in java so that messages can be sent to android and iphone devices.The number of users using the andrioid and iphone devices is large say 10000 people.

So to implement this requirement What should be the approach. What should be my approach to send the multicast messages to android and iphone devices? I am thinking of using the threads say there are 10000 users and I have made 10 threads so each thread out of 10 thread will handle push notifications for 1000(=10000/10) users.

Any other suugestion..

Should I use JMS and if yes then what should be the approach using JMS.

Please suggest me its very much urgent.

Thanks in advance.

Upvotes: 3

Views: 2743

Answers (2)

Joe
Joe

Reputation: 2987

What I am currently doing is:

  1. receive input that would want to send a push notification
  2. send that to an ActiveMQ queue
  3. a listener receives that message then has another class build out the message to send to the user
  4. then send new message based on step 3 to another ActiveMQ queue
  5. a listener receives that message then has another class fire out message to users device based on device type

The reason I went this route was steps 1,3,5 could have their concurrency changed in the applicationContext.xml.

Example Pic

Upvotes: 4

robhayward
robhayward

Reputation: 392

If you have the budget and it is urgent checkout http://urbanairship.com/

I've used it and it's great.

Upvotes: 0

Related Questions