Device Motion v3

I get the following error and do not know why when trying to use the device motion plugin.

[Error] ERROR TypeError: Object(WEBPACK_IMPORTED_MODULE_1__ionic_native_core[“cordova”]) is not a function. (In ‘Object(WEBPACK_IMPORTED_MODULE_1__ionic_native_core[“cordova”])(this, “getCurrentAcceleration”, {}, arguments)’, ‘Object(WEBPACK_IMPORTED_MODULE_1__ionic_native_core[“cordova”])’ is an instance of Object) getCurrentAcceleration