I am a chinese developer who want to use Geolocation

I want to get the position of my device, so I try the Geolocation from both ngCordova and Cordova. But I get ‘timeout’ everytime. I can’t visit google in china, and I think it is the problem.

By the way , I want the latitude and longitude with high accuracy.

Anyone would give me a hand。。?

Can you give some more details? What device(s) are you using? Cordova version?

If you’re able to view Stack Overflow here are some posts on this, if not let me know and I’ll paste the relevant text.


I fix this issue by used baidu map. :grinning:

the second post works for me.

If anyone else want’s to know how to make this work, just wrap your geolocation code into device ready event.

More about this topic can be found in another forum question: