-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Firebase.json with product flavours. #3507
Comments
Hmm, not possible right now. Quickest solution would be to make a quick script which is run before build. The script could read and parse the file, change the JSON values to whatever you need for that build and write the file again. |
Hey! Is is possible to place the id's inside the AndroidManifest.xml, like this: https://developers.google.com/admob/android/quick-start Would love to hear! |
ATM we got it inside the androidmanifest and the info.plist on GADApplicationIdentifier, (https://developers.google.com/admob/ios/quick-start) and we are getting ads. So this could work right? Atleast it does for us! =) |
For java something like this for your flavors should work? #3504 (comment) |
Hello 👋, to help manage issues we automatically close stale issues.
|
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Is there any solution as I am facing the same problem ?? |
Yes see my reaction earlier, this is what we use right now. It overrides the firebase.json |
It worked for me to show the ads right , but I think the ads for the two flavors got recorded on Admob for the one mentioned in firebase.json |
It should be noted that the firebase.json is more of a convenience than anything (similar to the google-services.json file). There is no requirement that you use it and for more complex projects (like, with flavors etc), there should be nothing stopping you from removing the related values from firebase.json and directly entering the related values in AndroidManifest.xml or Info.plist. If you chase the config / init code in |
Hello,
We are using product flavors for whitelabeling.
How do we use mulitple firebase.json for admob?
Because we can only specify:
"admob_android_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx", "admob_ios_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx"
And we have atm 3 different flavours with each their own android/ios firebase.
We would love to hear! Maybe its possible to set it when intializing admob?
The text was updated successfully, but these errors were encountered: