You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Martin Ambrus (JIRA)" <ji...@apache.org> on 2012/10/09 15:49:02 UTC

[jira] [Created] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

Martin Ambrus created CB-1603:
---------------------------------

             Summary: Compass / Geolocation issue on iOS 6 (iPhone)
                 Key: CB-1603
                 URL: https://issues.apache.org/jira/browse/CB-1603
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.0.0
         Environment: iPhone 5, iOS 6
            Reporter: Martin Ambrus
            Assignee: Shazron Abdullah
            Priority: Critical


Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.

What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.

This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.

We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Michal, this is the exact source I have in my XCode project and it does cause the compass arrow to appear. Did you enable external hosts in Resources/Cordova.plist? I have ExternalHosts set to * ... perhaps the project does not load jQuery Mobile because of this? Also, I have OpenAllWhitelistURLsInWebView set to YES.
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus updated CB-1603:
------------------------------

    Description: 
Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.

What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.

This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.

We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

  was:
Applications targeted for iPhone (iOS 4.2+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.

What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.

This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.

We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

    
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Sorry for the confusion, my target iOS is set to 4.3 (which is the lowest XCode 4.5 supports), not 4.2 as I previously written.

The target iOS is therefore always set to 4.3. This setting does not change.

Then I compile and run the application on an iPhone 4S with iOS 5.1 installed, where everything works as expected.

However, once I run the same application, with the same target (set to 4.3) on an iPhone 5 with iOS 6 installed, I see the compass arrow on the top right-hand side of the status bar. This arrow does not appear on iOS 5.1

Also, EnableLocationServices is already set to NO. I did not try to turn it on, as the application does not require any location-wise functionality.
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Shazron Abdullah updated CB-1603:
---------------------------------

    Fix Version/s:     (was: 2.2.0)
                   2.3.0

Punt to 2.3.0
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Michal Mocny
>            Priority: Minor
>              Labels: geolocation, location
>             Fix For: 2.3.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus edited comment on CB-1603 at 10/9/12 4:23 PM:
------------------------------------------------------------

Sorry for the confusion, my target iOS is set to 4.3 (which is the lowest XCode 4.5 supports), not 4.2 as I previously written.

The target iOS is therefore always set to 4.3. This setting does not change.

Then I compile and run the application on an iPhone 4S with iOS 5.1 installed, where everything works as expected.

However, once I run the same application, with the same target (set to 4.3) on an iPhone 5 with iOS 6 installed, I see the compass arrow on the top right-hand side of the status bar. This arrow does not appear on iOS 5.1 and seems to be only an issue with iOS 6, as I have now tried to upgrade my iPhone 4S to iOS6 and now it has the same issue as well.

Also, EnableLocationServices is already set to NO. I did not try to turn it on, as the application does not require any location-wise functionality.
                
      was (Author: martin-ambrus):
    Sorry for the confusion, my target iOS is set to 4.3 (which is the lowest XCode 4.5 supports), not 4.2 as I previously written.

The target iOS is therefore always set to 4.3. This setting does not change.

Then I compile and run the application on an iPhone 4S with iOS 5.1 installed, where everything works as expected.

However, once I run the same application, with the same target (set to 4.3) on an iPhone 5 with iOS 6 installed, I see the compass arrow on the top right-hand side of the status bar. This arrow does not appear on iOS 5.1

Also, EnableLocationServices is already set to NO. I did not try to turn it on, as the application does not require any location-wise functionality.
                  
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus updated CB-1603:
------------------------------

    Comment: was deleted

(was: Just to be on the safe side - the problem is not with iOS version that's selected as a target. The problem is with iOS 6 displaying compass arrow even though no locality-related plugins are even present in the Cordova.plist (and EnableLocationServices is NO as well).)
    
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

@Martin, thanks for answering all questions timely!

Seems I can't repro the previous behaviour of compass icon not disappearing until page navigation.  Perhaps I had a running location watch somehow (maybe a bug in mobilespec somewhere?)..

Anyway, I'm using the tip of tree, I'll try with the 2.1 release to see if I can repro there.  Either the issue has been fixed somehow, or we Martin is doing something unique that neither of us have been able to reproduce.  I'll report back soon, but in the mean time Martin, can you try to make a simple reproducible test case outside of your app, and attach it to this bug?
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Becky Gibson commented on CB-1603:
----------------------------------

I can not consistently reproduce this.  I saw it once on my wireless only iPad 3 but haven't been able to reproduce again.  I am wondering if it is a first time run of the app only?  
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Compass icon appears to disappear after changing the page url and waiting another ~10 seconds.  If I stay on the Location test page, the icon does not disappear.

Martin: is your application a single page app?
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Michal, I used the ./create command to create an empty default PhoneGap project, which on its own creates basic HTML structure and includes cordova JavaScript file as well. So I am including Cordova along with jQuery Mobile.

However, in my real project, I have omitted cordova.js file completely and only left jQuery Mobile - and it seemed to show the compass value on its own!

So it would seem jQuery Mobile code is the winner here. What is the best next step? File a bug request with them? Or leave it here with you?
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Michal, I've never done any XCode development myself, so I don't even know how to set up a basic project with webview. On top of that, the time it would take me to learn this is too long for me to spend at work, as I don't have XCode at home.

Would you be able to create such a sample project and attach it here? I could then try it out on our iPhone and possibly also report the bug to jQuery Mobile with the project attached.

Thanks for all your help so far!
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Martin, Just tried this again, and used remote web inspector to verify that the resources are loaded, yet I still cannot reproduce.

You say that you tried the exact file I attached?
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Michal Mocny
>            Priority: Minor
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Becky Gibson commented on CB-1603:
----------------------------------

Hmm, on an iPhone 4s with iPhone 6 I see the compass icon when I request location and then I see it go away after a few seconds.  I even tested turning on and off the watch location. It always went away a few seconds after the watch was turned off.  Very disturbing that we get different results.
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny reassigned CB-1603:
--------------------------------

    Assignee: Michal Mocny  (was: Shazron Abdullah)
    
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Michal Mocny
>            Priority: Minor
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Martin,
It would be great if you could file an issue with them.

However, I am sure that most jquery mobile devs are not set up for cordova and they will ask for a repro that does not include it.  If you can find a way to reproduce inside of a normal mobile web app, or inside a simple webview app, I am sure that that will help.

Please post the issue here once you file it with them, so that we can track it too.

Much appreciated!  (and if you don't get around to doing this, or you cannot reproduce outside of a cordova app, let me know)
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus updated CB-1603:
------------------------------

          Description: 
Applications targeted for iPhone (iOS 4.2+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.

What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.

This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.

We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

  was:
Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.

What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.

This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.

We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

    Affects Version/s:     (was: 2.0.0)
                       2.1.0
    
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Martin,
I just tried to reproduce and was not successful.  I added the exact lines you mentioned into my index.html <head>.  Going to attach the index.html file so you can try it and see what you get.  If you manage to get a working reproduction, please attach the full index.html file, thanks!
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Martin, you are right, I forgot to do that.  I don't have a physical device with me today, so I will test this tomorrow.  Thanks!
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Becky Gibson commented on CB-1603:
----------------------------------

Can you please clarify what device and iOS you are running on?  The environment in this issue says iPhone5 and iOS 6. Does this mean that when you compile the app to include the iOS 4.2 target and run it on an iPhone5 running iOS 6 that you see different results than when you compile with the target as 5.1 and test on the same device?  Or, does the problem only show up when running on a device with the lower level OS?  thanks

Do you need location services? Can you set EnableLocationServices to NO in the plist(although that does cause a problem in 2.1 that has been corrected for 2.2)?
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Okay, it definitely is jQuery Mobile, even their newest version. The only thing you need to include in the HEAD section of any project (even the default one) is this piece of code:

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>

... I would include the project itself but it's 12MB ;)
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Andrew Grieve commented on CB-1603:
-----------------------------------

I think 4.2 is still supported just fine by Xcode 4.5, it's just not one of the selectable options when using the UI's picker.

For our own sanity (and esp. for ARC zeroing weak refs), we'll eventually need to bump to 5.0. I think maybe 2.3 would be appropriate for this though unless this is causing us harm now.
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Michal, this is the compilation error I had in mind: https://groups.google.com/forum/?fromgroups=#!topic/phonegap/raO6uUENgo4
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

And we appreciate you help!  While waiting for your sample, I'll look to find an iPhone with ios6, just in case that does have something to do with it.
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Just to be on the safe side - the problem is not with iOS version that's selected as a target. The problem is with iOS 6 displaying compass arrow even though no locality-related plugins are even present in the Cordova.plist (and EnableLocationServices is NO as well).
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

I don't think you need to downgrade, but 2.2rc is going to be out soon, and 2.1 has some known issues with ios6 (its a work in progress to fix all the issues there).  I'de recommend upgrading to 2.2 as soon as its out.

In the mean time, lets make sure this is fixed for 2.2!
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus edited comment on CB-1603 at 10/10/12 6:33 AM:
-------------------------------------------------------------

I'm sorry, I just realized that the version of Cordova I'm using is 2.1 not 2.0 ... at least from what I understand. It's a little confusing for me, since the last released version of Cordova is 2.0 but the latest PhoneGap version (from www.phonegap.com - where I got my source from) is 2.1

So does this mean that Adobe released PhoneGap 2.1 with unreleased Cordova 2.1 source? I can try with PhoneGap version 2.0 and see if the problem is there as well...

Edit: ok, I can now confirm that PhoneGap 2.1 uses Cordova 2.1 source, which is marked as unreleased in this bug tracker... is the advised course of action downgrading to 2.0 in this case?
                
      was (Author: martin-ambrus):
    I'm sorry, I just realized that the version of Cordova I'm using is 2.1 not 2.0 ... at least from what I understand. It's a little confusing for me, since the last released version of Cordova is 2.0 but the latest PhoneGap version (from www.phonegap.com - where I got my source from) is 2.1

So does this mean that Adobe released PhoneGap 2.1 with unreleased Cordova 2.1 source? I can try with PhoneGap version 2.0 and see if the problem is there as well...
                  
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Becky Gibson commented on CB-1603:
----------------------------------

FWIW I have not been able to reproduce this on an iPhone4S running iOS6.  The compass icon always goes away after several seconds -even  when I stay on the same page.  
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny updated CB-1603:
-----------------------------

    Attachment: index.html
    
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Becky Gibson commented on CB-1603:
----------------------------------

I can't duplicate this.  I have an iPhone 4S that has been updated with iOS 6.  I have a Cordova 2.0 app with EnableLocationServices set to no.  I build this in Xcode 4.5 on Mountain Lion with the Base SDK set at Latest iOS (iOS 6), Build Active Architecture Only set to yes, and iOS Deployment target set to iOS 4.3.  I made the necessary architecture changes to armv7 in order to build. 

I do not see the compass arrow when I launch and run the app.  I have the option to request the location and if I call into the Cordova location api I get prompted with the approval dialog which I can accept or reject. My response is set in the Settings Privacy Location entry for my app. If I accept the location request and get the location, I see the compass arrow displayed for several seconds and then it disappears.   I went through the code (both 2.0 and edge) and I can't see why the location arrow would get turned on for the duration of the app. Cordova does turn on location at startup IF enableLocationServices is set to yes. In that case I will be prompted to accept location services at first run and the compass arrow disappears after several seconds.  

I also don't see this issue in an app built from the edge sources. 

As an additional debugging note to myself - if you have location services turned on for the Reminder app the compass arrow will always be displayed. 
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny updated CB-1603:
-----------------------------

    Priority: Minor  (was: Critical)
    
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Minor
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Michal, I've uploaded the exact project I use for the testing here: http://dl.dropbox.com/u/109813859/project.zip

This was created using XCode 4.5.1
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Michal Mocny
>            Priority: Minor
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Interestingly, if I change EnableLocation to YES in plist, then the compass starts to disappear after 10 seconds even without a page change, which is what I would expect.  However, it also seems to show the compass on application start for 10 seconds.

Seems you are seeing a combination of these two issues: compass shows up on application start, but never disappears.
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Great news, glad you nailed it!

By the looks of it, you aren't even including cordova at all right?  Is this some poor interaction between our javascript, or just their bug entirely?
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Interesting news... I've just discovered that the compass icon is only shown when I include jQuery Mobile 1.1.0 source code on the page! I can't see how, but it's true. Trying with newer jQuery Mobile version, stay tuned...
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

2.1 seems to act the same way as tip of tree, however, I am using a physical ipad3 with ios6 as I do not have an iphone5 to my disposal (yet).

Sorry Martin, I can try again if you provide a sample to reproduce.
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Shazron Abdullah updated CB-1603:
---------------------------------

    Fix Version/s: 2.2.0

Adding to 2.2.0 tag (for decision later)
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Few more notes:
- On ios simulator (5.1 or 6.0) I do not get a compass icon on startup, even if EnableLocation is set to YES, which is odd
- On ios simulator (5.1 or 6.0) I get correct behavior of compass disappearing ~10s after using a location api

Martin: is your app a "single page" app?  If so, could you add a link to navigate the page and see if the compass disappears, just as a quick test?
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Becky Gibson commented on CB-1603:
----------------------------------

Thanks for the details.  Yeah, our template sets the target to iOS 4.2 - I'm surprised xcode 4.5 doesn't error.  Need to see if we can make the target conditional on the Xcode version.  
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus edited comment on CB-1603 at 10/10/12 5:43 PM:
-------------------------------------------------------------

Michal, the app is not a single page app, it actually loads all its pages from the Internet using jQuery Mobile and serves them they come... however, even when I navigate in the app, the compass icon does not disappear

Also, with EnableLocation set to YES, I get a compilation error (the one everyone is talking about), so I cannot compile... thus I cannot test the app with location enabled at all
                
      was (Author: martin-ambrus):
    Michal, the app is not a single page app, it actually loads all its pages from the Internet using jQuery Mobile and serves them they come... however, even when I navigate in the app, the compass icon does not disappear
                  
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Thank you guys for your ongoing endeavor trying to solve the mystery. It's highly appreciated.

I will try and create a simple default project using 2.1 and the ./create command - hopefully in about 12 hours. That should make things a bit clearer and show us whether the behavior is consistent even without any custom HTML code.

As a side note, I see you're both testing this iPads with iOS6. I did not try to replicate this on iPad, although I have tested this on 2 different iPhones - versions 4S and 5. Both of them were running iOS 6 and the result was consistent, even after the first, second and any consequent run.
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

Michal, the app is not a single page app, it actually loads all its pages from the Internet using jQuery Mobile and serves them they come... however, even when I navigate in the app, the compass icon does not disappear
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Which compilation error? Not sure which everyone is talking about..
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

I've not yet been able to duplicate this, but I would like to point out that on an ios6 device (ipad3) when I run the Location tests, I get the compass icon as soon as I ask for location, and the icon never goes away.  There is a pair of "start/stop" watching locations buttons, but the compass persists even when the tests claim location tracking is off (webview issue? cordova issue?).

Investigating.
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.0 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Michal Mocny commented on CB-1603:
----------------------------------

Thanks for submitting this!  I just opened your project with xcode Version 4.5 (4G182) and ran it on device (iPad3 ios6) and did not reproduce.

I don't have an iPhone with ios6 yet, but we have ordered one and its on its way.  I can try again when it gets here, but for now, I'm not sure what to tell you!
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Michal Mocny
>            Priority: Minor
>              Labels: geolocation, location
>             Fix For: 2.2.0
>
>         Attachments: index.html
>
>
> Applications targeted for iPhone (iOS 4.3+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. This is true only for devices that have iOS 6 installed. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1603) Compass / Geolocation issue on iOS 6 (iPhone)

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

Martin Ambrus commented on CB-1603:
-----------------------------------

I'm sorry, I just realized that the version of Cordova I'm using is 2.1 not 2.0 ... at least from what I understand. It's a little confusing for me, since the last released version of Cordova is 2.0 but the latest PhoneGap version (from www.phonegap.com - where I got my source from) is 2.1

So does this mean that Adobe released PhoneGap 2.1 with unreleased Cordova 2.1 source? I can try with PhoneGap version 2.0 and see if the problem is there as well...
                
> Compass / Geolocation issue on iOS 6 (iPhone)
> ---------------------------------------------
>
>                 Key: CB-1603
>                 URL: https://issues.apache.org/jira/browse/CB-1603
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iPhone 5, iOS 6
>            Reporter: Martin Ambrus
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: geolocation, location
>
> Applications targeted for iPhone (iOS 4.2+) using Cordova 2.1 and developed in XCode 4.5 automatically turn on Compass / Geolocation. User is never asked if they want to reveal their location to the app, so it's probably the Compass plugin kicking in.
> What we see is the compass arrow on the right-hand top side of iPhone screen (status bar). When the application closes, arrow disappears.
> This is an issue for us, as it drains considerably more battery than version running on iOS 5.1, where this problem does not exist.
> We have tried to remove all - Location, Compass and GeoLocation plugins from the Cordova.plist to no avail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira