Last updated 8 months ago
On secure(https) pages browser like default navigator functions will work.
navigator.geolocation.getCurrentPosition(success, error, [options])
For reference can follow the link below.
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); } });
You'll need to import the javascript file in your website before starting from this .