user1141086
user1141086

Reputation: 65

background notification - blackberry

I want to show the user notification even when the app is not open, using something like background notification. It will listen to a server and will retrieve updates every 30 minutes and show the user the message. How can I implement this on BlackBerry.

I don't want to use RIM push service.

Upvotes: 1

Views: 453

Answers (2)

Remy Lebeau
Remy Lebeau

Reputation: 595792

Create a separate app (or give your existing app a second entry point) that implements net.rim.device.api.system.Application and is configured to run at device startup. That instance of your app will then be running in its own background process for as long as the OS is running. It can do whatever data polling it needs to do, and then display notifications to the user when needed, such as with the net.rim.blackberry.api.messagelist.ApplicationIndicator and net.rim.blackberry.api.messagelist.ApplicationMessageFolder APIs, or your own custom UI.

Upvotes: 1

Rupak
Rupak

Reputation: 3674

Check the difference between net.rim.device.api.system.Application and net.rim.device.api.ui.UiApplication.

Applications which do not require any user interaction may be derived directly from Application class. Applications which require user interaction should be derived from UiApplication.

Upvotes: 2

Related Questions