Last updated 11 months ago
Was this helpful?
On secure(https) pages browser like default navigator functions will work.
navigator.geolocation.getCurrentPosition(success, error, [options])
For reference can follow the link below.
You'll need to import the javascript file in your website before starting from this link.
To get GPS Status of device
WTN.isDeviceGPSEnabled({ callback:function(data){ console.log(data.value); } });
import { isDeviceGPSEnabled } from "webtonative"
isDeviceGPSEnabled({ callback:function(data){ console.log(data.value); } });