Countly / countly-sdk-react-native-bridge

Countly SDK for React Native applications (bridge method)
MIT License
23 stars 25 forks source link

[Android] - RemoteConfig is not working #238

Closed zakharchenkoAndrii closed 1 year ago

zakharchenkoAndrii commented 1 year ago

Hi there 👋

After updating countly-sdk-react-native-bridge to (latest) 23.6.0 remoteConfig fetching stopped to work for Android only.

(server version is "23.06.13")

After getting the key either by

Countly.getRemoteConfigValueForKey("KeyName", function(data){
console.log(data);
});

or

var data = await Countly.getRemoteConfigValueForKeyP("KeyName");

I am receiving the value that looks like internal access key for the value: ly.count.android.sdk.RCData@<someGeneratedId>

peterBrxwn commented 1 year ago

Hello, thank you for reporting this.

After looking into it, we have discovered the bug that causes "getRemoteConfigValueForKey" and "getRemoteConfigValueForKeyP" methods to return an object.

This bug has been fixed, and a new version (23.6.1) has been released.

zakharchenkoAndrii commented 1 year ago

Thank you, now it's working 🙂