diff --git a/src/plugins/devicemotion.ts b/src/plugins/devicemotion.ts index 4ea6ad3d7..6f9b0158f 100644 --- a/src/plugins/devicemotion.ts +++ b/src/plugins/devicemotion.ts @@ -70,8 +70,7 @@ export class DeviceMotion { * @returns {Observable} */ @Cordova({ - successIndex: 0, - errorIndex: 1 + callbackOrder: 'reverse' }) static watchAcceleration (options? : accelerometerOptions) : Promise { // This Promise is replaced by one from the @Cordova decorator that wraps