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

Make sure to call FirebaseApp.initializeApp(Context) first #839

Closed
kirill-kostenetskyi opened this issue Sep 10, 2018 · 4 comments
Closed

Comments

@kirill-kostenetskyi
Copy link

First of all: I've read all related issues and I saw commit to #830 with a fix to this.
Probably I having troubles with installing a new one version of the plugin.
This what I do:

ionic cordova plugin rm cordova-plugin-firebase
ionic cordova platform rm android
ionic cordova plugin add https://github.com/arnesson/cordova-plugin-firebase#1.1.4
ionic cordova platform add android@6.3.0

Version 1.1.4 should include a fix for this problem.
Any idea what am I do wrong?

@herrskytte
Copy link

herrskytte commented Sep 11, 2018

I get this error also when using the new firebase plugin 2.0.0
Edit: works in 2.0. I had not updated properly

@kirill-kostenetskyi
Copy link
Author

@herrskytte what is the last working version for you ?

@briantq
Copy link
Contributor

briantq commented Sep 11, 2018

@neustart Can you post the error that you are seeing into the issue? With v1.1.0 we inadvertently changed the API and required calling initFirebase. This was reverted in v.1.1.4 and should also be reverted in 2.X.

Can you run cordova plugin list to confirm which version of the plugin you are running?

@soumak77
Copy link
Contributor

This should be fixed in v2.0.1. Please comment if you are still seeing issues once upgrading. You can also try downgrading to v1.0.5 if you are not yet willing to adopt v2.

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

No branches or pull requests

4 participants