Describe the bug
I use the below methods to add firebase to my project:
ionic cordova plugin add cordova-plugin-firebase
npm install @ionic-native/firebase
import { Firebase } from '@ionic-native/firebase/ngx';
But when i call the method of startTrace then show error.
1.this._firebase.startTrace('123456');
2.ERROR: ERROR TypeError: Object(WEBPACK_IMPORTED_MODULE_2ionic_native_core["cordova"]) is not a function. (In 'Object(__WEBPACK_IMPORTED_MODULE_2ionic_native_core["cordova"])(this, "startTrace", {}, arguments)', 'Object(WEBPACK_IMPORTED_MODULE_2ionic_native_core["cordova"])' is an instance of Object)
I don't know how to solve the issue, pls give me some thinks.
Thanks very much!
Describe the bug I use the below methods to add firebase to my project:
But when i call the method of startTrace then show error. 1.this._firebase.startTrace('123456'); 2.ERROR: ERROR TypeError: Object(WEBPACK_IMPORTED_MODULE_2ionic_native_core["cordova"]) is not a function. (In 'Object(__WEBPACK_IMPORTED_MODULE_2ionic_native_core["cordova"])(this, "startTrace", {}, arguments)', 'Object(WEBPACK_IMPORTED_MODULE_2ionic_native_core["cordova"])' is an instance of Object)
I don't know how to solve the issue, pls give me some thinks. Thanks very much!