通过一个共同的code推送通知到各种设备 [英] Push notifications to various devices through a common code

查看:141
本文介绍了通过一个共同的code推送通知到各种设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,这就是我要推消息,谁正在使用Android或iPhone devices.I知道各个进程发送推送通知Android或iPhone应用程序的各种用户。

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.

现在我的工作就是我需要做在Java服务器端执行,这样的消息可以发送到使用andrioid和iPhone设备的用户的Andr​​oid和iPhone devices.The数量很大的发言权10000人。

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.

所以实现这个要求应该是什么办法。
应该是什么我的方法到多播消息发送到Android和iPhone设备?
我想使用线程说,有10000用户,我已经取得了10个线程使每个线程出10线程将处理推送通知1000(= 10000/10)的用户。

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.

任何其他suugestion ..

Any other suugestion..

我应该使用JMS,如果是那么究竟应该使用JMS的方法。

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

请给我建议其非常紧迫的。

Please suggest me its very much urgent.

先谢谢了。

推荐答案

什么我目前做的是:


  1. 收到将要发送推送通知输入

  2. 发送到ActiveMQ的队列

  3. 的侦听器接收到消息,则有另一个阶级打造出来的消息发送给用户

  4. 然后发送基于第3步新信息到另一个ActiveMQ的队列

  5. 的侦听器接收,然后该消息具有其他类火扑灭消息到用户设备根据设备类型

我去这条路线是1,3,5的步骤可以有自己的并发原因的applicationContext.xml

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

这篇关于通过一个共同的code推送通知到各种设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆