黑莓推送通知教程
我已向 RIM 注册进行推送通知评估。但我找不到实现推送通知的好来源。 sdk中有一些示例,但我找不到实现它们的方法。所以,我正在寻找一个很好的教程,在那里我可以找到推送通知服务的逐步实现......
I have registered with RIM for the push notification evaluation. But i cant find good sources for implementing push notifications. There are some samples in the sdk but i couldnt find out a way to implement them. So, i am looking for a good tutorial where i could find step by step implementation of push notification services...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RIM 的服务器端示例涉及设置 Web 应用程序容器(例如 Tomcat)、设置后端数据库,然后构建基于 Spring 的应用程序。此示例 Web 应用程序处理设备注册、内容订阅等事务,并提供一个门户来管理所有内容。
不过,最基本的要求是向其推送服务服务器发送一条 WAP 推送消息,该消息只是一个 HTTP POST。 这里是来自 BlackBerry 支持论坛的一个帖子,描述了如何使用其低级 PAP API 来构建此消息。请特别注意用户
mdicesare
发出的消息。还有另一个 SO 问题,其中有一些提示。
RIM's samples for the server side involve setting up a web application container (e.g. Tomcat), setting up a backend database, and then building their Spring-based application. This sample web app handles things like device registration, content subscription, etc. and features a portal to manage everything.
The bare minimum that is required, though, is to send a WAP Push message which is just an HTTP POST to their Push Service servers. Here is a thread from the BlackBerry Support Forums that describes how to use their low-level PAP API to construct this message. Pay attention in particular to the messages by the user
mdicesare
.There's also another SO question that has some tips.