#1 2016-12-01 08:10:49

reg4app
Member
Registered: 2016-05-16
Posts: 147

Is that possible to obtain GPS data in web browser mode?!

I want to obtain user's GPS position in web mode


Joshua.Y

Offline

#2 2016-12-01 08:17:13

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Is that possible to obtain GPS data in web browser 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!

Offline

#3 2016-12-01 08:27:40

reg4app
Member
Registered: 2016-05-16
Posts: 147

Re: Is that possible to obtain GPS data in web browser mode?!

Are the location sample's position datas  base on the IP info?!:) and smile


Joshua.Y

Offline

#4 2016-12-01 08:29:50

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Is that possible to obtain GPS data in web browser mode?!

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.

Offline

#5 2016-12-01 08:39:47

reg4app
Member
Registered: 2016-05-16
Posts: 147

Re: Is that possible to obtain GPS data in web browser mode?!

Ok,Thanks for the reply!


Joshua.Y

Offline

#6 2016-12-01 08:40:42

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Is that possible to obtain GPS data in web browser mode?!

reg4app wrote:

Ok,Thanks for the reply!

You're welcome! smile

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.