Firefox OS Background services

僤鯓⒐⒋嵵緔 提交于 2019-12-05 07:45:00

Can 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.org/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.org/Webapi and https://wiki.mozilla.org/WebAPI/SimplePush

The wiki page above is out of date - though it hints at what's coming.

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.org/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.org/show_bug.cgi?id=903441

Draft documentation on MDN is here:

https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker_API

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!