Use ngCordova so it works on Android
Track the movements in the background while tracking is enabled