portfoliobuilder portfoliobuilder - 4 days ago 5
Android Question

How to configure Firebase to support Android flavors?

I want to use Firebase push notifications, but I am running into a configuration conflict. I would like to support different packages. With Google Maps, for example, I can add multiple packages under one app. This is because of Flavors. If My app package is com.example, I may have multiple Flavors such as com.example.a, com.example.b. I want to add support for push notifications for all of these Flavors.

How do I add multiple package names on the Firebase console?

enter image description here

Answer

Just create seperate google-services.json files for each package you have and put them in their respective src folders

Comments