Adding dynamic behavior using Firebase Remote Config in iOS
In this recipe, we're going to implement the Firebase Remote Config in an iOS context, and as an example, we're going to cover how we effectively use the Firebase Remote Config API's to create somehow an A/B testing for our Google OAuth button. This will allow us to activate it or disable it right from the Firebase Remote Config section within your Firebase project console.
Getting ready
Since Firebase is highly modular, the Remote Config has its very own library, so let's install it. In your Podfile
, add the following line underneath your dependencies:
pod 'Firebase/RemoteConfig'
Now, in your terminal, simply type the following command:
~> pod install
This command will go and install the Firebase Remote Config library and download all its dependencies and configure your iOS application accordingly.
How to do it...
After installing the needed dependencies, let's start adding our logic to support the needed behavior. Within...