Search Issue Tracker
By Design
Votes
1
Found in [Package]
3.0.0-pre.11
Issue ID
1396049
Regression
No
[Remote Config] ConfigOrigin.Cached switch case is not used when the Internet is turned off
Reproduction steps:
1. Open project "RemoteConfigBug"
2. Open Scenes > SampleScene
3. Open Remote Config Window
4. Add a setting with Key: interstitialAdsFrequency, Type: int, Value: 70
5. Enter Play Mode
6. Wait for "True" and "70" to show up in the Console and exit Play Mode
7. Turn off the Internet
8. Enter Play Mode and wait for 10 seconds
Expected result: "No settings loaded this session; using cached values from a previous session." is printed in the Console
Actual result: Error is printed to the Console: "Curl error 28: Operation timed out after 10000 milliseconds with 0 bytes received"
Reproducible with: 2.1.2, 3.0.0-pre.11 (2020.3.30f1, 2021.2.13f1, 2022.1.0b9, 2022.2.0a8)
Could not test with: 2.1.2, 3.0.0-pre.11 (2019.4.36f1, Compilation errors)
The code used to test this behavior:
switch (configResponse.requestOrigin) {
case ConfigOrigin.Default:
Debug.Log("No settings loaded this session; using default values.");
break;
case ConfigOrigin.Cached:
Debug.Log("No settings loaded this session; using cached values from a previous session.");
break;
case ConfigOrigin.Remote:
Debug.Log(ConfigManager.appConfig.HasKey("interstitialAdsFrequency").ToString());
Debug.Log(ConfigManager.appConfig.GetInt("interstitialAdsFrequency").ToString());
_interstitialAdsFrequency = ConfigManager.appConfig.GetInt("interstitialAdsFrequency", DefaultInterstitialAdsFrequency);
assignmentId = ConfigManager.appConfig.assignmentId;
break;
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
- InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
Add comment