@TOTVS/MINGLE-IONIC-GEOLOCATION
This Package get informations about the device.
Installation
Using npm:
$ npm install --save @totvs/mingle-ionic-geolocation
import { GeolocationPlugin } from @totvs/mingle-ionic-geolocation
var geolocation = require('@totvs/mingle-ionic-geolocation')
Usage
Create an instance of the GeolocationPlugin:
var geolocation = new GeolocationPlugin();
getCurrentPosition
This method is used to return the current coordinates (latitude and longitude) of the device.
this.geolocation.getCurrentPosition();
isLocationEnabled
This method is used to verify that the Location Service is enabled.
this.geolocation.isLocationEnabled();