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

Thank you for this info

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

Did you end up finding a fix for this?