Question

There doesn't seem to be a huge amount of information regarding BlackBerry's push technology. The only thing I wish to accomplish is to send notifications to blackberry devices as they become available. Do I really need TomCat and MySQL for this? My java program is not a servlet and for the web-side of things I use PHP and communicate to java via sockets.

I am using java and if anyone knows of some examples, that would be great.

Was it helpful?

Solution

You can use any language to push to the server. The only thing you need is the PAP file provided in the demo APP in the PUSH SDK

You need to send the PAP file throught http with your given credential by RIM.

Edit : Tomcat and Mysql are needed only if you want to install your own PUSH server with your BES environment. See the Docs for DebugPortal on page 20

Here is the 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)--
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top