Background geolocation in ionic 2


#1

Im trying to build a simple iOS and Android app with Ionic 2 that capture geolocation if app is in background also.

I have tried below tutorial but able to get user location when app is in foreground in background is not working.

http://www.joshmorony.com/adding-background-geolocation-to-an-ionic-2-application/

Please suggest me how to acheve this.