Configuring the push client
Prerequisites: Installing the sample push-enabled application on a device
- Verify that the BlackBerry device that you want to install the sample push-enabled application on is synchronized with the BlackBerry Desktop Manager on the computer that you are using.
- Verify that the device that you want to install the sample push-enabled application on has the service books for the BlackBerry Internet Service installed.
- If you plan to install the sample push-enabled application from a computer that is not the computer where you installed the Push Service SDK , copy the .cod and .alx files for the sample push-enabled application to the computer that you are using.
- Add a storage record for the sample push-enabled application to the system memory.
Add a storage record for the sample push-enabled application to the system memory
Start Apache Tomcat by navigating to the bin folder in the Apache Tomcat installation folder and double-clicking either startup.bat or startup.sh.
Before you can send a push request message to the sample push-enabled application using the sample Push Initiator or the DebugPortal helper application, a storage record containing the attributes of the sample push-enabled application must exist in the system memory. The sample Push Initiator and the DebugPortal need to access this record. You can load the sample Push Initiator to automatically create the storage record in the system memory. The storage record contains the values that you typed for the push-enabled application when you installed the SDK.
Install the sample push-enabled application on a device
There are no samples available for BlackBerry devices running a version of the BlackBerry Device Software earlier than 4.2.
When you install a sample push-enabled application on a device, you must choose the sample that is compatible with the version of the BlackBerry Device Software that is running on the device. You can find the .alx and .cod files of the samples in the folder for the sample push-enabled application, at the location where you installed the Push Service SDK.
You need a computer with any version of BlackBerry Desktop Manager 4.6 to 5.0.1 to complete this task.
- Connect a device to a computer by using a USB cable.
- Start the BlackBerry Desktop Manager.
- If the device requires a password, specify the password and click OK.
- In the BlackBerry Desktop Manager, click Application Loader.
- In the Add/Remove Applications section, click Start.
- Click Browse.
-
Navigate to the sample-push-enabled-app folder and perform one of the following actions:
- If your device runs BlackBerry Device Software 5.0 or later, double-click the SamplePushEnabledApp5_0.alx file.
- If your device runs BlackBerry Device Software 4.6 or later but earlier than 5.0, double-click the SamplePushEnabledApp4_6.alx file.
- If your device runs BlackBerry Device Software 4.2 or later but earlier than 4.6, double-click the SamplePushEnabledApp4_2.alx file.
- Select the Sample Push Enabled Application check box. Click Next to complete the installation.
Configure the sample push-enabled application
Configuration settings for the sample push-enabled application
|
Setting |
Description |
|---|---|
|
Port |
|
|
App ID |
|
|
BPS server URL |
|
|
Push Initiator application URL |
|
|
App Acknowledgement |
|