Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Geolocation not working KitchenSink

Within the KitchenSink, does the getCurrentPosition work for anyone? This method is supposed to work within the simulator, right?

— asked October 14th 2010 by Bart Lewis
  • geolocation
1 Comment
  • I should have mentioned, I am talking about the iPhone simulator.

    — commented October 18th 2010 by Bart Lewis

2 Answers

  • The location event listener won't fire. So, you won't get updates on your position. But, generally you should be able to get the one-shot location information. I'm not sure if you're doing Android or iPhone. On Android, I had to manually set the location one time, from there it's cached (forever it would seem as I haven't fiddled with it and the one-shot location data is still there after several restarts). See my answer in the big long tips thread for the way to manually set a location in the Android simulator.

    — answered October 14th 2010 by Tim Poulsen
    permalink
    1 Comment
    • I cant get the Kitchen Sink to compile…tried all the tips here, but nothing..

      — commented October 14th 2010 by Josh Lewis
  • i read a similar thread on this very forum a long back….and the solution was

    open up ddms and find the emulator number such as emulator-5560

    now open up cmd prmpt window and type the following telnet command

    telnet localhost 5560
    

    then

    geo fix -82.411629 28.054553
    
    — answered October 18th 2010 by Satta Ravi
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.