Reputation: 65
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
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
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