Developing a push-enabled application
We provide a sample application that you can use to learn how to develop your own push-enabled application. The sample application shows you how to use the APIs in the client-side library to connect with the Push Initiator, and receive push messages on a BlackBerry device.
The sample application accepts push messages with the following types of content. The Push Service SDK automatically specifies the type of content in the header of the push message. In your application, you can send up to 8 KB of any type of content (images, text, or audio).
|Type of content||Content-Type HTTP header|
|Image||image/jpeg, image/gif, image/png|
To receive push messages, the sample application subscribes with the Push Initiator. If you don't want to use the Push Service SDK to write your Push Initiator, but you still want to use the sample application, you need to include some code in your Push Initiator that accepts the subscription request sent from the sample application, and returns an HTTP response back to the application. For more information about subscribing with the Push Initiator, see Registering to receive push messages.
|Sample push-enabled application||
The sample application depends on the BlackBerry Java Development Environment 5.0 or later.