X
Tap here to go to the mobile version of the site.

Support Forum

How can I run a background service in Firefox

Posted

Need to know how to create a service and run on startup (in Firefox zte device).

Need to know how to create a service and run on startup (in Firefox zte device).

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36

More Information

Andrew
  • Moderator
321 solutions 4037 answers

Hi,

please elaborate on the issue your are occurring.

Thank you.

Hi, please elaborate on the issue your are occurring. Thank you.

Helpful Reply

Hi,

I want to create a service in firefox os which will run in background and listening to some events in device like screen on/ off state.

Thank you

Hi, I want to create a service in firefox os which will run in background and listening to some events in device like screen on/ off state. Thank you
guigs 1072 solutions 11697 answers

HI gayathri1010,

There are apis that already do this, however I believe certian apps need permission to use them. It is possible to use them in the simulator I believe.

For more help with the code, please ask stackoverflow.com in the FIrefos-OS section :-)

HI gayathri1010, There are apis that already do this, however I believe certian apps need permission to use them. It is possible to use them in the simulator I believe. *[https://developer.mozilla.org/en-US/Apps/Build/API_support_table API Support Table] *[https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/PermissionsTable.jsm#36 Permissions Table for reference] For more help with the code, please ask stackoverflow.com in the FIrefos-OS section :-)