Skip to content
Discussion options

You must be logged in to vote

@robingenz
I found out what was wrong. Your hint helped to put me on the right track, thanks.
In case someone stumble on it too :

On the documentation to activate Firebase to your project : https://github.com/capawesome-team/capacitor-firebase/blob/main/docs/firebase-setup.md#android

In your module (app-level) Gradle file (usually //build.gradle), add the Google services plugin: https://github.com/robingenz/capacitor-firebase-plugin-demo/blob/9e0e2b245b1655271c7979357f32580a2a683168/android/app/build.gradle#L49

I've dumbly copy pasted the whole if block instead of adapting it for my project 🤦
I have multiple build flavors, and the if (servicesJSON.text) condition was always false becaus…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@gxolin
Comment options

@robingenz
Comment options

@gxolin
Comment options

@gxolin
Comment options

Answer selected by robingenz
@robingenz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants