I have successfully developed a BlackBerry App that registers for BlackBerry Push Messaging Service
and receives push message. The Push Message
is received as a pop-up message. I am handling at the back end to show this message inside the App in a Chat Screen
that I have created. The push message when sent to the device is stored in a database as well. The App has a timer running that queries the database for any new message and displays it inside the app. However this approach is not so efficient as I aim to display the message as soon as it is sent as a push message. My questions are as follow:
- When the App is closed and the server sends a push message, will this message be delivered?
- When a push message is received, how do you force-start an app?
- Is there any particular API or method available to detect when a push message is received?
- I am able to change the App icon when a message is received. However, I want this to change as soon as the
push message
is received as the pop-up. So how can I detect when thepush message
is received other than running a background timer?
Please guide.