diff --git a/src/plugins/deviceorientation.ts b/src/plugins/deviceorientation.ts index b5b8c3f5c..66159367e 100644 --- a/src/plugins/deviceorientation.ts +++ b/src/plugins/deviceorientation.ts @@ -75,8 +75,7 @@ export class DeviceOrientation { * @returns {Promise} */ @Cordova({ - successIndex: 0, - errorIndex: 1 + callbackOrder: 'reverse' }) static watchHeading(options? : CompassOptions) : Promise { // This Promise is replaced by one from the @Cordova decorator that wraps