Unregister from notifications

Your MIDlet can unregister from notifications as follows:

Calling NotificationSession.unregisterApplication() method completely stops all the notification sending to the MIDlet that calls unregisterApplication.

If calling unregisterApplication method when the MIDlet is in STATE_OFFLINE then an error is returned (ERROR_NOT_REGISTERED). Therefore, you always need to call NotificationSessionFactory.openSession() and NotificationSession.registerApplication() to make the MIDlet go to STATE_ONLINE).

Last updated 9 October 2013

Back to top

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.