Push
Tizen enables you to receive push notifications from a push server. The push service is a client daemon that maintains a permanent connection between the device and the push server to process the registration and deregistration requests, and deliver push notifications to the application. If the application is connected, the push service passes the notification data over the connection. Otherwise, the push service sends UI notifications with the data. The notifications are delivered when the user launches the application and selects the posting mode. The architecture of the Tizen Push service is described in the mobile native Push guide.
The Push API is optional for both Tizen mobile and wearable profiles, which means that it may not be supported in all mobile and wearable devices. he Push API is supported on all Tizen Emulators.
To receive push notifications for your application:
- Register the application to get the required permissions for using the push service.
- After receiving a confirmation email for the request, register the application on the device using the Push API.
- Connect to the push service for receiving push notifications using the Push API.
- Receive notifications from the push service.
The push service provides the RESTful open API for sending a push message. For more information on the Tizen Push Server API, see Sending Push Notifications.
The main features of the Push API include:
- Registering to the push service
You can register or unregister the application for the push service. If the registration process is successful, it returns the registration identifier through the PushRegisterSuccessCallback listener (in mobile and wearable applications).
- Receiving push notifications
You can connect to the push service and start receiving push notifications with the connectService() method. You must pass the PushNotificationCallback listener (in mobile and wearable applications) instance as a parameter in the method to receive push notifications.