Firefox OS Background Services

I want to create an application through which the user can enter some parameters, and the application will start a background service to perform some tasks based on these settings. I want to run the application and background service only in Simulator (I know that it requires "certified" mode to start the background service, but now I do not think that you are sending the application to the Firefox Marketplace).

Can someone provide me some links or tutorials on how to create and run a background service on the FIrefox OS platform? Can someone explain how to establish a connection between the background service and the application? (I have a search in MDN and google, but no luck).

Also, is there a way for an application (regular application or background service) to listen for notifications from the server? (I am looking for a method in which the application is not pool, but notified by the server).

Thanks Tamas

+6
source share
2 answers

Can someone provide me some links or build guides and run a background service on the FIrefox OS platform?

A future version of Firefox is planned. See "Help Services" at https://wiki.mozilla.org/Webapi

Also, is there some way for the application (regular application or background service) to listen to notifications from the server? (I am looking for a method in which the application is not combined, but the server is notified).

This has not yet been implemented. See https://wiki.mozilla.org/Webapi and https://wiki.mozilla.org/WebAPI/SimplePush

+5
source

The wiki page above is out of date - although it hints at what will happen.

Currently, the RequestSync API has landed - it allows you to perform scheduled awakenings for synchronization. This is not always a referral service. He planned to ship in version 2.2 of Firefox.

RequestSync is not registered in MDN yet, but an implementation error is here: https://bugzilla.mozilla.org/show_bug.cgi?id=1018320

RequestSync is a partial solution until we get full background synchronization through Service Workers.

Serving services are underway now: https://bugzilla.mozilla.org/show_bug.cgi?id=903441

The draft MDN documentation is here:

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

0
source

All Articles