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!!:-(
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.
-
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.
-
25