Samsung Gear wearable devices will now be able to receive Push messaging directly from the server. This may not be much of an announcement but did you know push notifications may reduce battery consumption over other applications keeping its own connection to its remote application server?
What is Push messaging?
Tizen will support the Push API to its Tizen OS mobile and wearable devices. The Push API allows your application to receive push notifications from a push server. The push service is a client daemon that maintains a permanent connection between your device and the push server, in order to process your registration/deregistration requests and deliver push notifications to your application. If the application is connected, the push service passes the notification data over the connection. Otherwise, the push service posts a UI notification with the data. It will be delivered when a user launches the application by selecting the posting.
Push notification helps your application server send data to the application on devices over an IP network even if the application is not running. Push notification may reduce battery consumption over other applications keeping its own connection to its remote application server.
How does it work?
The following steps illustrate a typical scenario for using the push messaging service on a Tizen device:
1. When an application is installed and launched, it sends a registration request to Tizen push server through the push service.
2. If the registration request is approved, the server sends a registration ID to the application through the push service.
3. The application sends the registration ID to the application server. This registration ID is used to identify the application installed in that particular device.
4. When the application server needs to send a push notification to the application in that particular device, it sends the notification together with the registration ID to the push server.
5. When the push server receives the notification and the registration ID, it checks which device has the application with the particular registration ID and then sends the notification to that device.
6. When the push service receives the notification and the registration ID, it sends the notification to the destination application.
Limitations of Push messaging service
• Payload of a push message is limited to 4096 bytes.
• Administrative permission is needed for your application and server to use the push service.
• Push service does not guarantee delivery and order of push messages.
• A device should have a valid IMEI number.