언어 설정

Menu
Sites
Language
Running background service in a web application

We are developing a calender web application. We need to show notifications and alerts for calender events. For that purpose we want to run a background service for managing notifications. 

We found a background-support option where the application execution is not suspended when the application is sent to the background. In this case the whole application will be running in background but we want to run only the notification service in the background which cosumes less memory/resource.

 

<tizen:setting background-support="enable" />

 

 

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.web.appprogramming%2Fhtml%2Fapp_dev_process%2Fediting_tizen.htm

Please let us know if there is any background service feature in Web Application.

 

 

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 댓글
Vineet Tiwari
hi please refer this link i hope it may give solution to you https://developer.tizen.org/documentation/articles/application-api-guide#receiveupdates
Yunchan Cho
To consume less memory and h/w resources on the background, application need to do only necessary jobs. But there is no additional option of config.xml for requesting only specific jobs like notification in the background. Such jobs need to be executed by content of web application that supports background mode, because only web application knows what it does and optimize on background. In case of calendar, you can make your web application only recieve events regarding calender, not update UI for the events. (you may make that UI jobs be deferred until your web application goes to foreground) Additionally, when your web application that support background mode goes to background, visibilitychange event is sent to top level webpage of your web application. So using this event, your application can know when it goes to background.
Kirill Chuvilin
Probably Web Workers could be useful. https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.web.appprogramming%2Fhtml%2Fguide%2Fw3c_guide%2Fperf_guide%2Fweb_workers.htm
Marco Buettner
You can also create a hybrid application.. With the options "launch automatic" on the manifest.xml (native application) the native part will start after installation and reboot of the system automatic. So it can listen alltime to the different events... On recieve data it can makes a notification alert :)