Cordova accelerometer, compass, geolocation plugins used in Angular service with promises.