Your use case is making me wonder how Mozilla keeps certain things alive. So, for example, if Gaia dies, I wonder if there something that keeps it open. It looks like the WIFI infra-structure in Linux (networking stuff) works with such a requirement as well.
m On Mon, Jan 21, 2013 at 12:54 PM, Zulewski, Kamil (REC) <[email protected]> wrote: > It seems I wasn't clear enough. We're investigating possible ways of > service/daemon implementation. This won't be 3rd party app, but rather part > of image. > > We want to create only service without regular app (this must not be visible > on home screen or in task manager). I've seen some services are implemented > as .jsm modules located e.g. here dist\bin\modules\, but wanted to check is > this only way to implement that. > > If I understand correctly Background services API is just an option for > regular application to do something in background. And it's not possible to > create application which has only background_page, it's launched at boot > time, and it's not visible anywhere. > > -- > BR, Kamil Żulewski > > From: Tim Chien [mailto:[email protected]] > Sent: Monday, January 21, 2013 3:02 PM > To: Zulewski, Kamil (REC) > Cc: [email protected] > Subject: Re: [b2g] Background services API > > When the background services closes, it would just silently fail. > However, at some point in the future, should the user launches your app*, you > should be able to do |window.open('...', 'background_page');| to launch the > background service again. > * Every 3rd app is always present on home screen. > > On Mon, Jan 21, 2013 at 7:29 PM, Zulewski, Kamil (REC) > <[email protected]<mailto:[email protected]>> wrote: > Thanks for quick reply. Where can I find some examples or description? > > What do you mean by: > "You will be able to launch it again only until the user has launch the app." > > This service shouldn't have UI nor home screen icon. So as I understand only > possibility to re-launch it is phone reboot. > > -- > BR, Kamil > > From: Tim Chien [mailto:[email protected]<mailto:[email protected]>] > Sent: Monday, January 21, 2013 11:36 AM > To: Zulewski, Kamil (REC) > Cc: [email protected]<mailto:[email protected]> > Subject: Re: [b2g] Background services API > > Hi, replay inline: > > On Mon, Jan 21, 2013 at 6:20 PM, Zulewski, Kamil (REC) > <[email protected]<mailto:[email protected]>> wrote: > Hi, > I've questions about Background services API mentioned here: > https://wiki.mozilla.org/WebAPI/#Planned_for_the_future > > 1) What's the status of this API? > > Implemented in Gaia, useable to certified app with backgroundservice > permission. However, no Gaia core apps is currently using it. > > 2) Is it possible to use it currently to create service: > a. which starts automatically at boot time and runs in background. > > Yes > > b. has no UI and it's not visible in task manager and/or on home > screen. > > Yes > > c. won't be killed in low memory conditions ( too much apps opened). > > It will be killed. You will be able to launch it again only until the user > has launch the app. > > > -- > BR, Kamil > > > _______________________________________________ > dev-b2g mailing list > [email protected]<mailto:[email protected]> > https://lists.mozilla.org/listinfo/dev-b2g > > > > -- > Tim Guan-tin Chien, Senior Front-end Dev., Mozilla Corp. (Taiwan) > > > > -- > Tim Guan-tin Chien, Senior Front-end Dev., Mozilla Corp. (Taiwan) > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g -- www.telasocial.com _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
