Push notifications to various devices through a common code

自作多情 提交于 2019-12-22 10:59:51

问题


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.


回答1:


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.




回答2:


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

I've used it and it's great.



来源:https://stackoverflow.com/questions/14400533/push-notifications-to-various-devices-through-a-common-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!