Well, it's an example: 1. I plan a route, start navigation 2. Screen goes off, because it drains battery, phone goes into pocket 3. When I have to turn left the phone vibrates once, when right, it vibrates twice
So I need access to geo and vibration sensors when the screen is off. On Thu, Jul 24, 2014 at 7:04 AM, Jonas Sicking <[email protected]> wrote: > > On Jul 21, 2014 2:01 AM, "Chelsea Wu" <[email protected]> wrote: > > > > Hi, Jonas and Jan, > > > > Good Day! > > > > Thanks a lot for this discussion thread. This is quite related to what I > am working on now. > > > > So far I am applying a wakelock for screen with camera function turned > on; however, my ultimate ideal solution is to have vibration active while > screen is still off in the scenario that it's at certain timing but not yet > reached certain point on GPS... > > I don't quite understand what you are trying to do. Are you trying to keep > getting GPS information while the screen is turned off, and once the user > reaches some certain GPS coordinate use the vibration API to notify thew > user? > > Or are you trying to do something else? > > / Jonas >
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
