Ionic 2 location services

Good Day Sir/Ma’am,

How can I add the plugin for location services?

$ ionic plugin add ???

And how can we use it in ionic 2 to enable location services for android/ios? (sample code if possible)

Thank you!

You need to add geolocation plugins into your project . like this https://github.com/apache/cordova-plugin-geolocation

Thank you for this info

Tried doing this but i’m getting getCurrentPosition is undefined error

http://ionicframework.com/docs/v2/platform/geolocation/

Did you end up finding a fix for this?