You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Andrea Zicchetti (Created) (JIRA)" <ji...@apache.org> on 2012/04/13 23:19:16 UTC

[jira] [Created] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

geolocation.clearWatch doesn't shut the GPS down under iOS
----------------------------------------------------------

                 Key: CB-509
                 URL: https://issues.apache.org/jira/browse/CB-509
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.6.0
            Reporter: Andrea Zicchetti
            Assignee: Shazron Abdullah
            Priority: Blocker
             Fix For: 1.6.1


Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.

It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Filip Maj (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257896#comment-13257896 ] 

Filip Maj commented on CB-509:
------------------------------

Thanks Shaz.
                
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.7.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj resolved CB-509.
--------------------------

    Resolution: Fixed

Verified that the fix for CB-359 fixed this issue. No longer valid.
                
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Filip Maj
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.8.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-509:
--------------------------------

    Attachment: CDVLocationShim.zip

@Andrea please use the attached plugin as a stop-gap until this can be addressed in a cross-platform way in a future release.

There is a README.txt included with instructions.
                
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.7.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Filip Maj (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253931#comment-13253931 ] 

Filip Maj commented on CB-509:
------------------------------

Related to this, I'm planning on landing a W3C-compliant rewrite of geolocation in cordova in 1.7 (tracked in CB-359). Includes a native iOS component. I would like to make sure that when I merge that in next week this bug is also covered.
                
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.7.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257894#comment-13257894 ] 

Shazron Abdullah commented on CB-509:
-------------------------------------

Ok I'll remove the 'depends on'. I'll add a stop interface function you can call in 1.7 in Obj-C.
                
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.7.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj reassigned CB-509:
----------------------------

    Assignee: Filip Maj  (was: Shazron Abdullah)
    
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Filip Maj
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.8.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Hugo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267064#comment-13267064 ] 

Hugo commented on CB-509:
-------------------------

Most likely same root cause, but the same symptoms occur when simply using getCurrentPosition() to get a single fix. Once the GPS kicks in, the only way to get it to stop is to suspend the app...unless your app registers for background location updates, in which case your batteries will be out in ~5hrs (ugh!!).
                
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.8.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Andrea Zicchetti (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254378#comment-13254378 ] 

Andrea Zicchetti commented on CB-509:
-------------------------------------

Thank you very much, it works like a charm.

For people reading this: the GPS is not switched off immediately, so don't worry if the GPS icon "survives" the stopLocation call (it's a iOS thing I suppose).
Try minimizing your app for a few instants to see the results.
                
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.7.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Filip Maj (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256069#comment-13256069 ] 

Filip Maj commented on CB-509:
------------------------------

Hey all,

Related to this, CB-359 won't land until 1.8 (since we don't want to drop new features in 1.7). Probably should remove the "depends on" to that issue in here if you still want to land this for 1.7.
                
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.7.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-509:
--------------------------------

    Fix Version/s:     (was: 1.7.0)
                   1.8.0

Not going to resolve this until 1.8.0 with the new implementation, since adding the stopLocation interface does not really fix this bug, but is a work-around.

In 1.7.0, you can do this for iOS:
{code}
    cordova.exec(null, null, "Location", "stopLocation", []);
{code}

Work-around commit: http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=4853cd11
                
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.8.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-509) geolocation.clearWatch doesn't shut the GPS down under iOS

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-509:
--------------------------------

         Priority: Critical  (was: Blocker)
    Fix Version/s:     (was: 1.6.1)
                   1.7.0
    
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
>                 Key: CB-509
>                 URL: https://issues.apache.org/jira/browse/CB-509
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andrea Zicchetti
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: CDVLocation, battery, clearWatch, gps, shutdown, stopLocation
>             Fix For: 1.7.0
>
>         Attachments: CDVLocationShim.zip
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the corresponding stopLocation function in CDVLocation), which was a temporary solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short amount of time will completely drain the battery in a few hours.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira