09-13-2010 06:00 AM
I want to develope a Push Application. Please consider everything in JAVA perpective right from Server to CLient.
The application is required to send a HTML file to BlackBerry (BB) devices.
After reading the various PDFs I get that I need following things:
My question is do I need to code something for BB Push Server? (excluding the coding for device PIN in Server application)
Do I need to install the BB Push Server SDK?
If I don't have a BB server where can I test my application?
From where can I get the demo application, which does not uses PHP (Servlet/Swing instead)?
I am using following configuration:
BB Device Simulator, SDK, MDS Simulator (all 4.6.0_126.96.36.199)
BB Push Server SDK 188.8.131.52.
Thanks in Advance!
11-08-2010 08:04 PM
You need two things:
1) A server-side application
2) A client-side/device application
RIM provides the push server - for public/BIS you use the BlackBerry Push Service (BPAS) and for enterprise/BES you would use a BES/MDS-CS.
The BB Push Server SDK 184.108.40.206 will help you write your server-side application.
11-09-2010 08:41 AM
massimo_olive, right you are. Just wanted to add that writign server side app, using BB PUSH SDK is not that great as this framework is not easy customized. Anyway you can take any of the examples/samples and build your own solution on top of it.
11-09-2010 09:00 PM
11-10-2010 02:20 AM
the unpleasant thing for me is that if you want just a simple push app to send messages you have to install and configure all that stuff: mysql,spring,config files , etc....
11-10-2010 06:45 PM
Not necessarily. The SDK can be used with MySQL and Tomcat but it can also be used at a low-level to just give you a thin layer of Java in front of PAP XML which is handy too. You just need the pap.jar and commons.jar in your classpath. It does use Spring but there is nothing to install for Spring, you just include spring.jar in your classpath too.
01-13-2011 12:52 AM
I have a similar query,
I need to create a push enabled application. So what is the exact procedure that I need to follow, with what I have read in the forums I know the following:
1. We need to create a server application that send the request to BB Push server.
My Question: Do we have to register with RIM to be able to send requests to the BB push server? I was told once we register with RIM for PUSH service, we are provided a URL and PORT, to which the PUSH requests have to be routed in our server application. Is that how it needs to be done?
2. We need to create a push enabled client application. Thats our application which resides on the phone that receives the push notifications.
My Question: What exactly has to be done in the application to be able to receive the PUSH messages from the Server? In the sample app provided bundled with the JDE, the client application listens to a particular port "100" for any incoming Push messages, is that how we need to do it in our application? Because, on iPhone, we dont have write any specific code for the phone app to receive the PUSH msgs, all we need to do is enable the PUSH service for the application. Or is the client side application required for phone apps for v 5.0 and below?
Please let me know the exact procedure to be able to get the push notifications running.
01-13-2011 05:40 PM
>> Do we have to register with RIM to be able to send requests to the BB push server?
Yes, there is an online form to fill out. RIM will provide you with an applicaiton id and password and the URL to their servers where you need to send your push request. They use the PAP XML spec for communication. They will also give you the port to listen on for your client application
>> is that how we need to do it in our application?
Ultimately yes. You need to create a listener on a port for the push messages. The 5.0 OS has a push.api package that makes writing client applicaiton a lot easier. But if you want your applicaiton to work on devices with OS 4.6 and older then you need to hand code the listener for now. The Push Service SDK ships with some client sample code for different versions of the OS.