开发适用于不同移动平台的推送应用
我必须承认我对开发推送服务完全陌生。我必须开发一个 REST Web 服务(使用 jersey)来提供类似的应用程序 - 一个在 Blackberry 上,第二个在 Android 上,另一个在 Windows 上。我需要向我的服务添加推送支持,以通知这 3 种客户端应用程序。我一直在浏览一些关于采取哪种方法的博客(我可以在谷歌上搜索许多 替代方案),在我看来最好选择 MQTT。
我不知道什么方法适合不同的移动平台,MQTT是一个好的选择吗?
另外,我想知道,客户端是否必须了解用于推送的服务器技术?也就是说,如果我要实现 MQTT,我的客户是否需要编写 MQTT 特定代码?我更喜欢一种客户端不处理此类依赖关系的方法。
谢谢 !!
I must confess I am totally new to developing push services. I have to develop a REST web service (using jersey) which serves similar apps - one on Blackberry, second Android and the other Windows. I need to add push support to my service, for notifying these 3 kinds of client apps. I have been going through some blogs regarding which approach is to taken (I could google for many alternatives ), and it seems best to me to go for MQTT.
I cant think what method is appropriate for diverse mobile platforms, is MQTT a good choice ?
Plus, I would like to know, do the client have to be aware of the server technology used for pushing ? That is, say, if I go for implementing MQTT, would my client need to write MQTT specific code ? I would prefer a method where the client does not deal with such dependencies.
Thanks !!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对移动开发一点也不熟悉,但您可能对 Dale Lane 昨天发布的博客文章感兴趣: http://dalelane.co.uk/blog/?p=1599 他描述了许多在 Android 上使用 MQTT 的有用内容,并提供了示例代码。
客户端很可能会使用一个库来实现您所看到的任何推送技术,因此他们编写的任何代码都将特定于该库。我想您可以自己编写足够的代码(或者从上面的示例中看到),这样客户端就不需要特别担心 MQTT 或您使用的任何推送技术。
I'm not familiar with mobile development at all, but you may be interested in the blog post that Dale Lane posted yesterday: http://dalelane.co.uk/blog/?p=1599 He describes lots of useful things for working with MQTT on Android and provides example code.
The client will most likely be using a library for whatever push technology you look at, so any code they write would be specific to that library. I imagine you could write enough code yourself (or see from the examples above) so that the client doesn't need to worry particularly about MQTT or whichever push technology you use.