i think it’s possible if i use phonegap or publish the game directly on browser.
but is there any way i can make it through JSB please?
thanks.
Hi,
I think Geolocation is an API of browser, but JSB is a native application.
You can use Geocoder API (http://docs.eoeandroid.com/reference/android/location/Geocoder.html) to get geolocation on Android platform, and then calling the java API through JNI in C**.
For JSB, you should binding a C** function for JavaScript.
Best regards
David