How to push notification from server to client in Symbian Web Runtime
Hi all,
I'm a newbie to Symbian Web Runtime.
Currently, I want to push notification to alert users to new info in the app. This will involve a small red asterisk at the top of the screen similar to a new SMS.
Is it possible? And if possible, what can I do in the server and client to implement this feature?
Regards,
Re: How to push notification from server to client in Symbian Web Runtime
if you want to show it outside your own application window, then it is not possible.
Re: How to push notification from server to client in Symbian Web Runtime
It mean, the widget have to opened or run in the background to get the notification from server?.
Re: How to push notification from server to client in Symbian Web Runtime
Yes you need to keep you application running and also pull the information. I suppose the Notification API: [url]http://projects.developer.nokia.com/notificationsapi/wiki[/url] is only available for Qt.
Re: How to push notification from server to client in Symbian Web Runtime
Thank for your quick reply,
It's right that Notification API is only available for Qt.
So, please help me to suggest the way to implement the push notification in symbian web runtime.
Can you give me any exemple or tutorial about push notification?
Thank you so much.
Re: How to push notification from server to client in Symbian Web Runtime
If there is no API available, then there is no official way on doing the things you want to do. And if you want to use API like this, then you would need to use the technologies available for implementing the applciation, i.e. with this case you would need to change the implementation from WRT Widgets to Qt applications.
Or do as suggested, keep the application on, and use polling.
Re: How to push notification from server to client in Symbian Web Runtime
Hi,
As Yucca pointed out, there is no way to implement push notification in Symbian WRT. However WRT does offer Home screen widgets, that are constantly running in the home screen.
Please check this out and see if it suits your purposes:
[url]http://www.developer.nokia.com/Community/Wiki/Homescreen_widget_guidelines[/url]
-Ilkka
Re: How to push notification from server to client in Symbian Web Runtime
Thank for the useful reply of isalento and yucca,
So, to get information from server, the only way to get information from server is to keep the app running in home screen and polling to server. But as the link of isalento, only some devices can run in the home screen, such as Nokia N97. So, i think the best way to get notification is pull to server after app starts or use the push notification service of the third party.