Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError:is not a function in iOS platform #1143

Open
VinlorJiang opened this issue Feb 27, 2020 · 0 comments
Open

TypeError:is not a function in iOS platform #1143

VinlorJiang opened this issue Feb 27, 2020 · 0 comments

Comments

@VinlorJiang
Copy link

Describe the bug
I use the below methods to add firebase to my project:

  1. ionic cordova plugin add cordova-plugin-firebase
  2. npm install @ionic-native/firebase
  3. 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_2__ionic_native_core["cordova"]) is not a function. (In 'Object(WEBPACK_IMPORTED_MODULE_2__ionic_native_core["cordova"])(this, "startTrace", {}, arguments)', 'Object(WEBPACK_IMPORTED_MODULE_2__ionic_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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant