Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

configureWithOptions fix for android #336

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

Open
BodySplash wants to merge 3 commits into fullstackreact:master
base: master
Choose a base branch
Loading
from BodySplash:master

Conversation

Copy link

@BodySplash BodySplash commented Apr 28, 2017

When a google-services.json is provided, Firestack auto-configures itself (see this article), so there is no way to pass custom options afterwards.

Removing the google-services.json didn't solve the issue, since building a FirebaseOptions without an applicationId throws an exception.

This patch detects if the firebase default app is already configured, otherwise uses params to set it up, without trying to build an empty FirebaseOptions.
Il also refactored a little bit the way params keys are searched to be complient with the params in the ios version.
I think this patch might resolve most of the "FirebaseApp[DEFAULT] already configured" errors in android apps, like in #265

Maybe the README should be updated to state clearly that .plist/.json and options from js are mutually exclusives way to configure firestack.

Copy link
Collaborator

Salakar commented May 3, 2017
edited
Loading

You're probably best off tackling this on my v3 fork of firestack if possible due to the current state of affairs here

v3: https://github.com/Salakar/react-native-firestack

baba43 reacted with thumbs up emoji

Copy link
Author

hum why not. Since you dropped all options passing, it will require a little more work to include my PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /