-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
doc missing: initFirebase call needed before anything #827
Comments
@loicginoux would you mind submitting a PR with updates to the README? |
I think an alternative fix here would be to initialize Firebase by default or when data is requested from the client, at least Firebase proper. This was disabled in the Crashlytics PR submitted a few days ago. I understand that for GDPR compliance one might not want to enable crash reporting and making that configurable makes sense. For things that require a call into the plugin to get data (with Messaging you need to get the Token), it seems like initializing it when the call is made would make sense. That way you only have to explicitly start the components that you never interact with, but everything else works seamlessly (and doesn't required a documentation update) |
@briantq agreed. I guess I didn't catch that the Crashlytics PR disabled the auto-init functionality. This should be added back immediately. If someone finds a reason for not needing to auto-init firebase, a configuration variable can be added which allows disabling the auto-init functionality. |
This is being fixed via #830. If we can have some people help test out that PR, we can get the fix published sooner. |
This should be fix via |
Hello,
First, thanks for your plugin.
I think it would be helpful to add to the README doc that a call to initFirebase() is necessary before anything. I had issues at initialisation and could not find anywhere the cause of the problem.
If it can help others here is a "get started" code:
NOTE: for meteor, it needs to be wrapped in a Meteor.startup function to work too.
The text was updated successfully, but these errors were encountered: