diff --git a/src/plugins/deviceorientation.ts b/src/plugins/deviceorientation.ts index c0a9be5c2c..a923d68b9d 100644 --- a/src/plugins/deviceorientation.ts +++ b/src/plugins/deviceorientation.ts @@ -89,7 +89,7 @@ export class DeviceOrientation { @Cordova({ callbackOrder: 'reverse', observable: true, - cancelFunction: 'clearWatch' + clearFunction: 'clearWatch' }) static watchHeading(options?: CompassOptions): Observable { return; }