Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox OS Background services

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 communicate 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

like image 442
Tamas Ionut Avatar asked Mar 05 '13 12:03

Tamas Ionut


People also ask

How do I stop Firefox from running in the background?

For example, are you finding Firefox (firefox.exe) in the Windows 10 Task Manager (Ctrl+Shift+Esc) on the Processes tab or the Details tab? If you confirm firefox.exe running in the Task Manager, you can right-click > End Process on it to "crash" it so you can start Firefox normally.

What is Firefox use a background service to install updates?

The background updates feature adds a Firefox Background Update entry to the Windows Task Scheduler that, when enabled, will check for Firefox updates every 7 hours when the browser is not in use.

Why is Firefox still running after I close it?

If Firefox did not shut down normally when you last used it, Firefox might still be running in the background, even though it is not visible. If you try to open it while it's running, an error message will appear with the option to click Close Firefox.

Does Firefox update in the background?

When background updates are possible, the background update task will be invoked every 7 hours (by default). The first invocation initiates an update download which proceeds after the task exits using Windows BITS.


1 Answers

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

like image 136
alefteris Avatar answered Oct 25 '22 02:10

alefteris