Titanium Community Questions & Answer Archive

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

Result of expression 'Titanium.Geolocation.watchPosition' [undefined] is not a function

Hi folks,

I know I am doing something fundamentally wrong here as when I try to run my code I get the following error……

"Result of expression 'Titanium.Geolocation.watchPosition' [undefined] is not a function"

I am a newbie to app development and I cannot find this in the API doc…

the line is…


//Deal with the Coordinates

;}, function(){



{"enableHighAccuracy" : true}



— asked September 27th 2010 by Austin Quinn
  • a
  • function
  • geolocation
  • iphone
  • is
  • mobile
  • not
  • watchposition

3 Answers

  • Don't know if this got answered somewhere else, but I ran into the same problem, and clearing the build/iphone directory did the trick for me. It'd be cool if there was a button for Rebuild and Launch that does this automagically in Titanium Developer when needed.

    — answered January 23rd 2011 by Daniel Guy
  • I wished that worked. Anytime I include a new API I get this error Result of expression <insert any new API> [undefined] is not an object. I have had to create a new project every time. Bummer as I am not a github expert.

    — answered May 20th 2011 by abraham williams
  • 25

    — answered June 19th 2012 by Bill Freedman
    1 Comment
    • bad joke

      — commented July 17th 2012 by Abhishek Shah
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.