Open mjromka opened 5 years ago
I am facing the exact same issue! I'm wondering if there is a workaround @MJRomka . This issue only happens in Android.
I found a fix. Increase the cacheExpiration to at least 2 hours @MJRomka . Google recommends to set it to 12 hours, however, I think 2h is a good number.
Since, I don't need it to be fetched in real-time, I set the recommended by Google and it worked as expected. You can find further information about that here: https://medium.com/mobile-app-development-publication/least-firebase-remote-config-cache-duration-an-experiment-644c0b836ca
Thanks @vhugogarcia I'll give it a try, however the issue doesn't reoccur in my app for a long time
First 10 or so times it work fine, but then I am stacked in this exception:
Exception: Xamarin.Plugin.Firebase.RemoteConfig.Exceptions.FirebaseRemoteConfigFetchFailedException: [FirebaseRemoteConfig] Fetch failed ---> Firebase.RemoteConfig.FirebaseRemoteConfigFetchThrottledException: Exception of type 'Firebase.RemoteConfig.FirebaseRemoteConfigFetchThrottledException' was thrown. at Xamarin.Plugin.FirebaseRemoteConfig.FirebaseRemoteConfig+<FetchAsync>d__4.MoveNext () [0x0002b] in /Users/smarongiu/projects/Xamarin.Plugin.Firebase.RemoteConfig/Xamarin.Plugin.Firebase.RemoteConfig.Android/FirebaseRemoteConfig.cs:34 --- End of inner exception stack trace --- at Xamarin.Plugin.FirebaseRemoteConfig.FirebaseRemoteConfig+<FetchAsync>d__4.MoveNext () [0x0007a] in /Users/smarongiu/projects/Xamarin.Plugin.Firebase.RemoteConfig/Xamarin.Plugin.Firebase.RemoteConfig.Android/FirebaseRemoteConfig.cs:36