admin管理员组文章数量:1026156
I want to build and application through which an user can input some settings and the application will start a background service to perform some tasks based on those settings. I want to run the application and the background service only in the Simulator (I know that it requires "certified" mode for running a background service, but I am not thinking right now for posting the app on Firefox Marketplace).
Can someone provide me with some links or tutorials on how to build and run a background service on FIrefox OS platform? Can anyone also explain how to municate between the background service and the application? (I have search the MDN and on google, but no luck).
Also, is there some way for application (regular app or background service) to listen for notifications from a server?(I am looking for a method in which the application does not pool, but is notified by the server).
Thanks, Tamash
I want to build and application through which an user can input some settings and the application will start a background service to perform some tasks based on those settings. I want to run the application and the background service only in the Simulator (I know that it requires "certified" mode for running a background service, but I am not thinking right now for posting the app on Firefox Marketplace).
Can someone provide me with some links or tutorials on how to build and run a background service on FIrefox OS platform? Can anyone also explain how to municate between the background service and the application? (I have search the MDN and on google, but no luck).
Also, is there some way for application (regular app or background service) to listen for notifications from a server?(I am looking for a method in which the application does not pool, but is notified by the server).
Thanks, Tamash
Share Improve this question edited Apr 5, 2013 at 14:32 alefteris 1,1268 silver badges21 bronze badges asked Mar 5, 2013 at 12:14 Tamas IonutTamas Ionut 4,4105 gold badges38 silver badges62 bronze badges2 Answers
Reset to default 5Can someone provide me with some links or tutorials on how to build and run a background service on FIrefox OS platform?
This is planned of a future version of Firefox OS. See "Background services" at https://wiki.mozilla/Webapi
Also, is there some way for application (regular app or background service) to listen for notifications from a server?(I am looking for a method in which the application does not pool, but is notified by the server).
This doesn't seem to be implemented yet. See https://wiki.mozilla/Webapi and https://wiki.mozilla/WebAPI/SimplePush
The wiki page above is out of date - though it hints at what's ing.
Currently the RequestSync API has landed - it allows scheduled wake-ups for synchronization purposes. This is not an always-on background service. It's planned to ship in the 2.2 release of Firefox OS.
RequestSync is not yet documented on MDN but the implementation bug is here: https://bugzilla.mozilla/show_bug.cgi?id=1018320
RequestSync is a partial solution until we have full background synchronization through Service Workers.
Service Workers are in the implementation stage now: https://bugzilla.mozilla/show_bug.cgi?id=903441
Draft documentation on MDN is here:
https://developer.mozilla/en-US/docs/Web/API/ServiceWorker_API
I want to build and application through which an user can input some settings and the application will start a background service to perform some tasks based on those settings. I want to run the application and the background service only in the Simulator (I know that it requires "certified" mode for running a background service, but I am not thinking right now for posting the app on Firefox Marketplace).
Can someone provide me with some links or tutorials on how to build and run a background service on FIrefox OS platform? Can anyone also explain how to municate between the background service and the application? (I have search the MDN and on google, but no luck).
Also, is there some way for application (regular app or background service) to listen for notifications from a server?(I am looking for a method in which the application does not pool, but is notified by the server).
Thanks, Tamash
I want to build and application through which an user can input some settings and the application will start a background service to perform some tasks based on those settings. I want to run the application and the background service only in the Simulator (I know that it requires "certified" mode for running a background service, but I am not thinking right now for posting the app on Firefox Marketplace).
Can someone provide me with some links or tutorials on how to build and run a background service on FIrefox OS platform? Can anyone also explain how to municate between the background service and the application? (I have search the MDN and on google, but no luck).
Also, is there some way for application (regular app or background service) to listen for notifications from a server?(I am looking for a method in which the application does not pool, but is notified by the server).
Thanks, Tamash
Share Improve this question edited Apr 5, 2013 at 14:32 alefteris 1,1268 silver badges21 bronze badges asked Mar 5, 2013 at 12:14 Tamas IonutTamas Ionut 4,4105 gold badges38 silver badges62 bronze badges2 Answers
Reset to default 5Can someone provide me with some links or tutorials on how to build and run a background service on FIrefox OS platform?
This is planned of a future version of Firefox OS. See "Background services" at https://wiki.mozilla/Webapi
Also, is there some way for application (regular app or background service) to listen for notifications from a server?(I am looking for a method in which the application does not pool, but is notified by the server).
This doesn't seem to be implemented yet. See https://wiki.mozilla/Webapi and https://wiki.mozilla/WebAPI/SimplePush
The wiki page above is out of date - though it hints at what's ing.
Currently the RequestSync API has landed - it allows scheduled wake-ups for synchronization purposes. This is not an always-on background service. It's planned to ship in the 2.2 release of Firefox OS.
RequestSync is not yet documented on MDN but the implementation bug is here: https://bugzilla.mozilla/show_bug.cgi?id=1018320
RequestSync is a partial solution until we have full background synchronization through Service Workers.
Service Workers are in the implementation stage now: https://bugzilla.mozilla/show_bug.cgi?id=903441
Draft documentation on MDN is here:
https://developer.mozilla/en-US/docs/Web/API/ServiceWorker_API
本文标签: javascriptFirefox OS Background servicesStack Overflow
版权声明:本文标题:javascript - Firefox OS Background services - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745629171a2160054.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论