Results 1 to 8 of 8

Thread: Get GPS location of device?

  1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
      0  

    Default Get GPS location of device?

    Hi,
    Is there any way in touch 2.0 to get the GPS location from the device and use it?

    I couldn't find any answers in the forums or examples on how to do this. Perhaps it needs the native bundle?

    thanks

  2. #2
    Sencha User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,968
    Vote Rating
    931
      0  
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
      0  

    Default

    That's not global positioning system? I meant the GPS latitude/longitude.

  4. #4
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
      0  

    Default

    nm. I see how it works now. Thanks!

  5. #5
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
      0  

    Default

    I tried this on android phone and it doesn't seem to work.

  6. #6
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Vote Rating
    1367
      0  

    Default

    We have an Ext.util.GeoLocation class that uses the HTML5 geolocation spec. There is the locationupdate event that fires when the coords are returned.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  7. #7
    Sencha User
    Join Date
    May 2012
    Posts
    9
    Vote Rating
    -1
      0  

    Default

    Please could you give me an short example, how can I use the Ext.util.Geolocation class in the Ext.MAp class. I cant get this work at the andriod device. useCurrentPosition works perfect on iOS but not on android. Ive been searching for hours for an solution. Im using ST 2 / anroid 2.2.. It is possible without building a native app, just running on the android browser and get the current possition via GPS?

    Thanks a lot....really great job this framework !!!

  8. #8
    Sencha User
    Join Date
    Jun 2017
    Posts
    11
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by evant View Post

    I have manage to create GPS Location to get current location its working only when the location is enable on the device, how do i do auto detect for location to ask user to enable GPS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •