Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

One more try with geolocation

I use the function geolocation.getCurrentPosition(locationSuccess, locationError). I define the functions locationSuccess and locationError as descripted in the SDK-Guide. I also do several console.log-statements.

 

But obviously neither the locationSuccess function nor the locationError function is called.

 

I absolutely have no idea why this shouldn't work...

 

Can somebody help?

Best Answer
4 REPLIES 4

I am using watchPosition and it seems to works. I'll test again today and post if something seems odd.

Best Answer

@agsurf5geolocation.watchposition() works too, in my app.

 

But it seems that the function locationError(error) will not be entered.

 

I mentioned it in another threat: I call locationError() to show that the GPS connection isn't established yet, but since the last OS update that function isn't entered in my opinion, because the commands I execute there don't show any reaction.

 

Do you notice similair behaivors?

 

Capitano

Best Answer
0 Votes

Hey Capitano,

 

It threw an error for me when I did not use the package.json checkbox.

Other than that I really have nothing going on on error, so I can't really tell you.

 

Best Answer
0 Votes

I've noticed this exact behaviour when deploying to my ionic via FitBit studio... but it works fine when deploying to the simulator locally. Did you end up finding out what was up?

Best Answer
0 Votes