Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2804 in a recent build.
  1. #1
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      1  

    Default [OPEN TOUCH-137] enableHighAccuracy/allowHighAccuracy in GeoLocation

    [OPEN TOUCH-137] enableHighAccuracy/allowHighAccuracy in GeoLocation


    Sencha Touch version tested:
    • 1.1

    Platform tested against:
    • Android 2.2 (PhoneGap)

    Description:
    • The setting used to enable high accuracy (GPS based) geolocation was changed in 0.99 release to be 'allowHighAccuracy' instead of the standardized 'enableHighAccuracy' property that is defined in the w3c spec. This typo makes it impossible to get a GPS based location update when using PhoneGap, since PhoneGap follows the specifications exactly and will not access the GPS for a location unless 'enableHighAccuracy' is set to true. The change was made in the 0.99 release and has been that way ever since. The following override fixes this problem - I just made the minimal change to get it working, but you might consider fixing the name of the property as it's used in the GeoLocation configuration to match the standard 'enableHighAccuracy' property.

    Fix:

    Code:
    Ext.override(Ext.util.GeoLocation,{
    	parseOptions: function(){
            var ret = { 
                maximumAge: this.maximumAge, 
                enableHighAccuracy: this.allowHighAccuracy
            };
            //Google doesn't like Infinity
            if(this.timeout !== Infinity){
                ret.timeout = this.timeout;
            }
            return ret;
        }
    });
    See this URL for the w3 spec: http://dev.w3.org/geo/api/spec-sourc...#high-accuracy

    My Git repo is all messed up right now, so I can't commit this change myself, hopefully someone else can take care of it for me.

  2. #2
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Bump

  3. #3
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    2 weeks and not even a tag.

  4. #4
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    How is this fix not a priority?

  5. #5
    Sencha User
    Join Date
    Aug 2007
    Posts
    36
    Vote Rating
    0
    Trixor is on a distinguished road

      0  

    Default


    I agree with VinylFox. Please apply the fix.

  6. #6
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    *bump*

  7. #7
    Sencha - Support Team mike.estes's Avatar
    Join Date
    Mar 2011
    Location
    Redwood City, CA
    Posts
    221
    Vote Rating
    9
    mike.estes will become famous soon enough

      0  

    Default


    Thank you for reporting this, filed as TOUCH-137

  8. #8
    Sencha User cdg10620's Avatar
    Join Date
    Feb 2010
    Location
    Houston, Tx
    Posts
    8
    Vote Rating
    0
    cdg10620 is on a distinguished road

      0  

    Default


    I have encountered this same issue. We were working on an application and wanted the application to use a higher accuracy GPS if it was available. After digging in the source we saw the issue that @VinylFox has stated here. After changing the #Sencha source the GPS functionality improved dramatically.

  9. #9
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Seems that this bug has fallen through the cracks.

    This bug still exists in ST 2.x

  10. #10
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Fixed. Will be in a future version of Sencha Touch 2. Thanks.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Similar Threads

  1. Issue with Android geolocation...
    By JoshAAiM in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 3 Jul 2011, 4:41 AM
  2. Ext.Map with geolocation problem
    By NitrOuS in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 19 Jan 2011, 1:04 PM
  3. Phonegap and geolocation?
    By johnwards in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 14 Nov 2010, 3:41 PM
  4. Ext.util.GeoLocation and .99
    By xnakxx in forum Sencha Touch 1.x: Discussion
    Replies: 9
    Last Post: 5 Nov 2010, 1:31 PM

Thread Participants: 7

Tags for this Thread