Creating notifications service and MIDlet

  1. Register notifications service.

    The notifications service needs to be registered in the Nokia Notification Server before it is developed and launched.

    Once the notifications service is registered with the Nokia Notification Server, it gets a:

    • Service ID

    • Service Secret

    • Application ID

    These service credentials are used by the notifications service to register and authenticate against the Nokia Notification Server, and for sending notifications to the MIDlet.

    For instructions on obtaining the service credentials for the notifications service, see Register notifications service.

  2. Add notification support to notifications service.

    The Nokia Notifications Service API (REST API) is used to add notification support to the notifications service. The REST API allows notifications services to push notifications to the Nokia Notification Server.

    For instructions on adding notification support to the notifications service, see Add notification support to notifications service.

  3. Add notification support to MIDlet.

    The Nokia Notifications Client API is used to add notification support to the MIDlet. The Client API allows MIDlets to register and receive notifications from the Nokia Notification Server. Once the MIDlet is registered with the Nokia Notification Server, it gets a unique Notification ID that is sent to the notifications service to receive notifications.

    For instructions on adding notification support to the MIDlet, see Add notification support to MIDlet.

  4. Test notifications service and MIDlet.

    Once the notification support is added to the notifications service and the MIDlet, notifications can be sent to the MIDlet from the notifications service via the Nokia Notification Server.

    Nokia hosts three types of environments for running and testing the notifications service and the MIDlet:

    • Sandbox environment: To develop and test the notifications service and the MIDlet.

    • Production environment: To support the notifications service and the MIDlet when it is globally launched in the market.

    • Chinese production environment: To support the notifications service and the MIDlet when it is launched in the Chinese market.

    In order for the MIDlets to receive notifications, the Environment Selector application on the device is used to set the Notification Enabler to point to the correct environment.

    Note: The Nokia Notification Server address and the Service Secret are different for each of the Nokia-hosted environments.

    For instructions on testing the notifications service and MIDlet, see Test notifications Service and MIDlet.

  5. Publish notifications service and MIDlet.

    When the notifications service and the MIDlet is completely tested and ready for commercial launch, it needs to be moved from using the sandbox environment to using the Chinese production environment (for making it available to users in China) or the production environment (for making it available to users in the rest of the world). The MIDlet needs to be packaged and published to the Nokia Store.

    Note: The notifications service and the MIDlet must be tested in the sandbox environment for at least five days before requesting to move to the production or Chinese production environment.

    For instructions on publishing the notifications service and the MIDlet, see Publish notifications service and MIDlet.