On Jul 13, 2014 8:59 AM, "Jan Jongboom" <janjongb...@gmail.com> wrote: > > Can I ask what type of thing you are trying to build? > > > > We do actually have a permission for "ability to use sensor API even in background". That permission should give you ability to use sensors while holding the CPU lock. Though the permission might only be granted to privileged apps. And I'm not sure its used much so might no longer work. > > > > > > / Jonas > > In general I'd say for stuff like navigation apps if you're on bike. Makes no sense to have the screen on in that case, but I would want data from the GPS and maybe use vibrate to notify users when they need to turn. > > Or an app like Moves that tracks what you're doing (biking, cycling, anything). We can run it in the background through alarms but can't track anything.
Yeah, a permission I think would solve access to sensors and GPS. I don't have a great solution for vibration. What we are basically looking for is a way to notify the user without brining up a notification. Or at least make the notification less persistent. Maybe simply use the notification API, but delete the notification as soon as your app becomes visible. / Jonas
_______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g