How to get Lat, Long in Ionic app

Author - Webner
14.02.2019
|
0 Comments
|

Steps to access GPS in Ionic app to capture lat/long

For this feature we use Geolocation plugin in ionic. It provides user’s current position based on the device’s current location (latitude and longitude). With the help of latitude and longitude you can get the address of the person. It also provides the functionality to watch device position.
Installation:

$ ionic cordova plugin add cordova-plugin-geolocation
$ npm install @ionic-native/geolocation

Platform:

  • Amazon Fire OS
  • Android
  • Browser
  • iOS
  • Windows

Use:
Import inside the page where you want.

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published. Required fields are marked *