Download and install the NNAClientExample MIDlet on the Emulator or device.
Download and install the EnvironmentSelector MIDlet (included with NNAClientExample MIDlet) on the Emulator or device.
Run the EnvironmentSelector MIDlet, select the Sandbox environment from the list. Tap on Save button, and then tap on Done button.
This will set the Notification Enabler to point to the Sandbox environment.
Run the NNAClientExample MIDlet, and tap on Register button.
The MIDlet tries to connect to the Notification Enabler, registers it, changes its notification status to Online, and enables it to receive notification messages.
Note: If the notification status does not change to Online, check and correct the network proxy server settings.
Tap on Get Notification ID button.
The MIDlet retrieves the Notification ID from the Nokia Notification Server, and displays it on the screen.
Note: The generated Notification ID can be copied from the Diagnostics window of the Emulator.
Go to the Nokia Developer Console sending tool at https://account.nnapi.ovi.com/cm/Web/services.jsp, and click on example.com link from the list of services.
The console displays the Push Notification pane on the right of the list of services.
Paste the Notification ID in the id field, type “Hello” in the payload field, and click on Push button.
The notification message is displayed on the screen.