X
Нажмите здесь, чтобы перейти на мобильную версию сайта.

Форум поддержки

How can I run a background service in Firefox

Размещено

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).

Дополнительные сведения о системе

Приложение

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

Дополнительная информация

Andrew
  • Moderator
321 решений 4047 ответов
Размещено

Hi,

please elaborate on the issue your are occurring.

Thank you.

Hi, please elaborate on the issue your are occurring. 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

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 решений 11697 ответов
Размещено

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 :-)