I am developing mobile web page. I want send from this page request to my native mobile app (for example android app, and android app should send me current location of user.
Thanks in advance !
I am developing mobile web page. I want send from this page request to my native mobile app (for example android app, and android app should send me current location of user.
Thanks in advance !
It looks like you'll want to use the geolocation API.
Look for the accepted language header on the server side. Or via js:
navigator.language
See this question: JavaScript for detecting browser language preference
The geolocation API will work on phone browsers that support that API. It may be worth checking the compatibility of the handsets you are targeting.
Also, just bringing these alternatives to your attention, however, they are restricted to certain operators and regions.
BlueVia location API available on O2 and Telefonica networks using their REST API https://bluevia.com/en/page/tech.APIs.LocationAPI
AT&T location API available using their REST API http://developer.att.com/developer/apiDetailPage.jsp?passedItemId=10100355
Just so you know about these, the geolocation API is most likely the best option for you though.