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…

"Titanium.Geolocation.watchPosition(function(e){

//Deal with the Coordinates

;}, function(){

Titanium.API.info("FAILED")

;},

{"enableHighAccuracy" : true}

);

Help!!:-(

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

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
    permalink
    0 Comments
  • 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
    permalink
    0 Comments
  • 25

    — answered June 19th 2012 by Bill Freedman
    permalink
    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.