-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)A bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: remote_configtype: bugSomething isn't workingSomething isn't working
Description
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.
neerajyadav, abin-saju, bounty1342 and mregandla
Metadata
Metadata
Assignees
Labels
impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)A bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: remote_configtype: bugSomething isn't workingSomething isn't working