Skip to content

[remote_config] Unable to retrieve neested config. (" are striped away) #2074

@bounty1342

Description

@bounty1342

Describe the bug
remoteConfig.getString('locale'); is removing the quote of the included string.

To Reproduce

Future<RemoteConfig> setupRemoteConfig() async {
  final RemoteConfig remoteConfig = await RemoteConfig.instance;
  // Enable developer mode to relax fetch throttling
  remoteConfig.setConfigSettings(RemoteConfigSettings(debugMode: true));
  remoteConfig.setDefaults(<String, dynamic>{
    "welcome": "default welcome",
    "hello': 'default hello",
    "locale": {
		"languageCode": "en",
		"countryCode": "US"
      },
  });
  return remoteConfig;
}

Expected behavior

    String jsonLocaleConfig = remoteConfig.getString('locale');
    _localeConfig = json.decode(jsonLocaleConfig);

Additional context

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76, locale en)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.42.1)
[✓] Connected device (2 available)

• No issues found!

Let me know if I can provide you with more info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: remote_configtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions