portfoliobuilder portfoliobuilder - 1 year ago 139
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download