Java – BlackBerry Push Notification: do you really need Tomcat / MySQL?
•
Java
There doesn't seem to be a lot of information about BlackBerry Push technology My only hope is to send notifications to BlackBerry devices when they are available
I'm using Java, and it would be great if someone knew some examples
Solution
You can push to the server in any language The only thing you need is the PAP file provided in the demo app in the push SDK
You need to send an HTTP file with your given credentials through rim
Edit: Tomcat and MySQL are required only if you want to install your own push server in the bes environment See docs for debugportal on page 20
This is a Pap file
--$(boundary) Content-Type: application/xml; charset=UTF-8 <?xml version="1.0"?> <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN" "http://www.wapforum.org/DTD/pap_2.0.dtd" [<?wap-pap-ver supported-versions="2.0"?>]> <pap> <push-message push-id="$(pushid)" ppg-notify-requested-to="$(notifyURL)"> <address address-value="WAPPUSH=$(pin)%3A100/TYPE=USER@rim.net"/> <quality-of-service delivery-method="$(deliveryMethod)"/> </push-message> </pap> --$(boundary) $(headers) $(content) --$(boundary)--
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码