incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <shaz...@gmail.com>
Subject Re: stopping GPS after clearWatch
Date Sat, 14 Apr 2012 03:11:26 GMT
Sounds swell, 1.7.0 target right? I made a quick plugin for the
existing devs that really really need to save battery in the interim.

On Fri, Apr 13, 2012 at 7:12 PM, Filip Maj <fil@adobe.com> wrote:
> Yeh here's the native change on iOS.
>
> Essentially whenever a getCurrent or watch call comes into native, we
> store the callback id. We check if that's the first request, if so, native
> will call a private "start" method.
>
> Then whenever we get a native geo update, we sent the data back to web
> view, clear all getCurrent callback ids, and if we have no more stored
> callback ids, we call private "stop" method.
>
> I've got android lined up with that exact impl. as well.
>
> On 4/13/12 5:59 PM, "Becky Gibson" <gibson.becky@gmail.com> wrote:
>
>>Fil has a branch that rewrites location.  I think that will address this.
>>
>>-Becky
>>
>>Sent from my iPad
>>
>>On Apr 13, 2012, at 6:27 PM, Shazron <shazron@gmail.com> wrote:
>>
>>> re: https://issues.apache.org/jira/browse/CB-509
>>>
>>> How do you guys handle this under other platforms?
>>>
>>> Right now there's no way to stop the location on iOS since with the
>>> start of cordova-js the stop function was taken out. We really need
>>> this functionality in iOS (stop). Right now clearWatch is all
>>> javascript, but it clearly needs to signal to native to stop the GPS.
>

Mime
View raw message