Firefox OS后台服务 [英] Firefox OS Background services

查看:114
本文介绍了Firefox OS后台服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要构建和一个应用程序,用户可以通过该应用程序输入一些设置,并且该应用程序将启动后台服务以基于这些设置执行一些任务. 我只想在模拟器中运行该应用程序和后台服务(我知道运行后台服务需要认证"模式,但我现在不考虑在Firefox Marketplace上发布该应用程序.)

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

有人可以向我提供一些有关如何在FIrefox OS平台上构建和运行后台服务的链接或教程吗?谁能解释一下后台服务与应用程序之间的通信方式吗? (我已经在MDN和Google上进行了搜索,但是没有运气.)

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

谢谢, 塔玛什

推荐答案

有人可以向我提供一些有关如何构建的链接或教程 并在FIrefox OS平台上运行后台服务?

Can someone provide me with some links or tutorials on how to build and run a background service on FIrefox OS platform?

这是Firefox OS的将来版本的计划.请参见 https://wiki.mozilla.org/Webapi

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

这似乎尚未实现.请参见 https://wiki.mozilla.org/Webapi

This doesn't seem to be implemented yet. See https://wiki.mozilla.org/Webapi and https://wiki.mozilla.org/WebAPI/SimplePush

这篇关于Firefox OS后台服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆