When adding Firebase
support to the iOS app, Firebase generates this GoogleService-Info.plist
file.
One of the flags in this file is IS_ADS_ENABLED
which defaults to true
.
I can't find any documentation of this flag (on the website nor in FIROptions
). Does anyone knows what does it do and when can I disable it?
When adding Firebase support to the iOS app, Firebase generates this GoogleService-Info.plist file. One of the flags in this file is IS_ADS_ENABLED which defaults to true. I can't find any documentation of this flag (on the website nor in FIROptions ).
Name the phase “Setup Firebase plist files” and add it below the “Link Binary with Libraries” step. Create a new shell script that will copy the appropriate list file to the app bundle based on the current build configuration selected. Copy and paste the following code into the run script phase you just created:
To get your iOS app integrated with Firebase, follow the instructions here. You will download the file from the Firebase console as part of setup. If you need to download the file a second time, follow the instructions here: To download a config file for an iOS app: Sign in to Firebase and open your project.
In the FirebaseUI sample project, there are two ways to add GoogleService-Info.plist in the sample project environments. Dragging it in the sample project root. Because our sample project already have a reference for GoogleService-Info.plist, we can just fill up the reference with the second technique.
Firebase support gives this answer about IS_ADS_ENABLED
The
IS_ADS_ENABLED
key was previously used on Firebase projects that are using Google Ads features. However, it's deprecated now, but your app should have no issues whether it's set to true or false. We're still looking for solutions to remove this for all projects to avoid confusion. As of now, we are yet to find out any details or timelines as to when it will be implemented
Yes, you can disable it. I have disabled it in my project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With