IONIC 4 Firebase analytics multiple environment/project

Hello everyone,

Is there anyone who has implemented firebase analytics with two custom environment and two native configs?

I personally have two native configs (“test”: and “prod”:
I wish I could change the BUNDLE-id of “test” like without the firebase prevent the build by taking me this error.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name ''

I understand that i need a second google-services.json and a second GoogleService-Info.plist with the new BUNDLE-it (correct me if im wrong?)
as this documentation ( explains.
but I have difficulties to implement it.

In ios : where to put this code?

In android: where i set in the config or somewhere else the name of the folder app/src/???/google-services.json

did anyone succeed in having an equivalent and functional system?
Thanks a lot