Description
[REQUIRED] Step 1: Describe your environment
- Xcode version: 12.2
- Firebase SDK version: 7.3.0
- Installation method: CocoaPods
- Firebase Component: RemoteConfig
[REQUIRED] Step 2: Describe the problem
We use the 3rd loading strategy (Load new values for next startup) as described here https://firebase.google.com/docs/remote-config/loading
Our application fetches the required configuration on the splash screen.
On the first launch, this fetch succeed and the app behaves normally.
For some reason, on other launch the local configuration sometimes returns empty values.
The Firebase app is configured and the logs doesn't identify any issue even if set to max.
The problem isn't easily reproducible on all devices, but some of them are failing almost 1 on 3 times.
We Unfortunately couldn't narrow the devices concerned, neither the OS concerned.
When the content is empty :
-
The last fetch status is
succeed
-
defaultExpiration: TimeInterval = 600
-
When we print the value of :
RemoteConfig.remoteConfig().allKeys(from: .remote)
RemoteConfig.remoteConfig().allKeys(from: .static)
RemoteConfig.remoteConfig().allKeys(from: .default)
It returns 0 (no key was found)
Steps to reproduce:
Please find below the link to the sample where you can reproduce :
https://drive.google.com/file/d/1LG4fbE4FCW4Ts61vGgvzQLUW0l6jSH4s/view?usp=sharing
To reproduce, simply install the sample, kill & launch it multiple times. Once the background is red, it means that the local conf is empty.