03-23-2010 05:15 AM - edited 03-23-2010 05:15 AM
Mark, Would you be able to post an example of a request to make a push notification to push.eval.blackberry.com I figured out the client side on the handheld I just need to learn how to push the notification to the client.
Solved! Go to Solution.
03-24-2010 05:08 PM
Pretty much I'm looking for a sample PAP push to push.eval.blackberry.com. I understand there is a browser push but I want to do a push to a java application
03-25-2010 11:15 AM
Currently all sample code for the BlackBerry Push Service is included with the BlackBerry Push SDK. We do not have further samples available at this time.
03-25-2010 01:58 PM
Can you point me in the right direction I've looked all over the jar files included and cannot find a HTTP request thats posts to push.eval.blackberry.com
03-26-2010 12:50 PM
Just shoot an email to blackberry developer support they will provide you a sample code. I did the same.
03-26-2010 07:32 PM
Ah ok, I figured the forums would get me a quicker response since RIM does monitor them.
03-27-2010 01:20 AM
after the installation,
the sample server source code is here:
BPSS\pushsdk\sample-app\sample-app-1.0.0.5-sources
check SampleApplication.java for push data using API net.rim.pushsdk.push.PushBeanLocator.
03-27-2010 12:13 PM
That still doesn't help, The server that will be sending the push results is PHP, I have no access to install Tomcat or anything Java. So I need to build a PHP push server using PHP and CURL.
03-27-2010 10:37 PM
After doing a bit of packet sniffing I was able to figure out the request and port it over to a PHP script but push.eval.blackberry.com is reporting "Error
The content you have requested is not available
PD_pushRequest command is not currently in service!"
<?php // create a new cURL resource $ch = curl_init(); $data = '--mPsbVQo0a68eIL3OAxnm'. "\r\n" . 'Content-Type: application/xml; charset=UTF-8' . "\r\n\r\n" . '<?xml version="1.0"?> <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd"> <pap> <push-message push-id="4V7oyJQezIR-1269707554176" deliver-before-timestamp="2010-03-27T16:32:44Z" source-reference="309-R34M5hf50MMc2m55"> <address address-value="push_all"/> <quality-of-service delivery-method="unconfirmed"/> </push-message> </pap>' . "\r\n" . '--mPsbVQo0a68eIL3OAxnm' . "\r\n" . 'Content-Type: text/plain' . "\r\n" . 'Push-Message-ID: 4V7oyJQezIR-1269707554176' . "\r\n\r\n" . 'It is currently, 11:32:34 AM on Saturday March 27, 2010!' . "\r\n" . '--mPsbVQo0a68eIL3OAxnm--' . "\n\r"; // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://push.eval.blackberry.com/mss/PD_pushRequest"); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_USERAGENT, "BlackBerry Push Service SDK/1.0"); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, ""); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: multipart/related; boundary=mPsbVQo0a68eIL3OAxnm; type=application/xml")); curl_setopt($ch, CURLOPT_VERBOSE, true); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ?>
03-28-2010 08:12 AM
Possibly the URL is
http://pushapi.eval.blackberry.com/mss/PD_pushRequest
I am trying to port the push to .net/C# but I am hardly searching all the URL's to subscribe, push etc...
Do you got these URL's?