I want to obtain user's GPS position in web mode
I want to obtain user's GPS position in web mode
Hello Joshua,
The App Builder's Location control can work in modern browsers without the Apache Cordova's "Location" plugin (which can be also used if we wanted) but I am not sure if this control can offer to you what you wanted? Try with the included "Location" samples.
If you are talking to access the device's GPS "sensor" (instead the HTML5 Location API) you must build the application with Apache Cordova's and the Location plugin. I don't know a way to access such kind of information from the browser or an HTML5 app.
Maybe the App Builder Compass control (look at the samples!) can help you also... but this control requires the appropiate Apache Cordova's plugin and therefore can't work in browsers "as is", since there is not an equivalent like with the "Location" case.
Hope this information can help you. Please let me know if you have any further question!
Are the location sample's position datas base on the IP info?!:) and =)
Hello Joshua,
Maybe. The Location control is based in the Geolocation HTML5 API. But I am not completely sure what source the browsers' vendors use to obtain the user location. Probably every vendor uses their own services (?) based on the user's IP and other possible data.
However, when we use the Apache Cordova's Location plugin along with the App Builder Location control, then the refered HTML5 API is not used, but the user's geolocation information are taken (if I am not wrong) directly from the device's hardware or the device's operating system like Android, for example.
Ok,Thanks for the reply!
Ok,Thanks for the reply!
You're welcome! :)
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.