joinflux / firebase-remote-config

MIT License
7 stars 9 forks source link

Value is not updated #14

Open schnouz opened 1 year ago

schnouz commented 1 year ago

Hi There, Thanks for this plugin ! I got an issue when calling the getString function to get back my config. await FirebaseRemoteConfig.getString({key: 'config'}); Each time the app state change i'm calling the same code to get the config. The issue is that the value is not updated. I need to close and reopen the app to get the new value. Regards

rgarciadelongoria commented 1 year ago

yes, I need uninstall and reinstall the App to get new value.

uniqbit-julian commented 1 year ago

Hi together,

I assume this is on Android? This should be fixed once this PR is merged: https://github.com/joinflux/firebase-remote-config/pull/11

gugahoi commented 1 year ago

Just thought I'd get some clarification for this: have you guys checked where the value is coming from? The remote config docs explicitly state that the value can come from 3 places: local default, cache or remote. If you update the value in the remote config, you'll need to ensure you retrieve the latest before getting it's value. If there's any code you can share, I'd be happy to take a look.