TestQC Web
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode

Geolocation

Geolocation Test

Intended for testing the device’s geolocation function using HTML Geolocation API to get the geographical position of the device.

Prequisite

  • Device with built in gps such as smartphones or tablets.

How it looks

geolocation

Geolocation is most accurate for devices with GPS, like smartphones. Use the green marker button when the gps position is not obtained correctly or hit refresh.

Since this get location feature can compromise privacy, the get location is not available unless the user approves it, so user must answer the Block or Allow confirmation from the browser when the page loads.

WebGeolocation API https
In addition, the get location function also requires an https connection, as a requirement of the WebGeolocation API.
Why? Because this feature allows you to get the user location of the user. If it were enabled over unencrypted HTTP, this would allow an attacker to inject code that listens in and sends the location data to the attacker. Therefore, to get location coordinates from device is only available from secure contexts https.