Conditions in Firebase Remote Config DefaultsFirebase remote config condition by userIdCan I use Firebase remote config for updating strings.xml of Android app?Firebase Remote Config - “user in random percentile” with keyFirebase Remote Config fetch doesn't update values from the CloudAbout Firebase Remote Configuration limitationsUtilizing colors from firebase remote config in AndroidFirebase Remote Config A/B testing - Error in iOS experiment consoleFirebase remote config - language conditions not working - androidFirebase Remote Config Conditions Country/Region is not detected
What's the benefit of prohibiting the use of techniques/language constructs that have not been taught?
All numbers in a 5x5 Minesweeper grid
Inquiry answerer
How to convey to the people around me that I want to disengage myself from constant giving?
How is underwater propagation of sound possible?
Problem of Induction: Dissolved
Is the name of an interval between two notes unique and absolute?
Wrong Schengen Visa exit stamp on my passport, who can I complain to?
What was the earliest microcomputer Logo language implementation?
Explanation of 申し訳ございません
Compare FEM mesh with the mesh created within Mathematica
How to generate short fixed length cryptographic hashes?
Amortized Loans seem to benefit the bank more than the customer
Does Forgotten Realms setting count as “High magic”?
Abilities interrupting effects on a cast card
Why are there no programmes / playbills for movies?
Python web-scraper to download table of transistor counts from Wikipedia
The Google Earth Challenge: "A dangerous flower"
What is the origin of the "being immortal sucks" trope?
How to give my students a straightedge instead of a ruler
Are all article combinations valid patterns for "the" ɴᴏᴜɴ of "the" ɴᴏᴜɴ?
Hobby function generators
Tips for remembering the order of parameters for ln?
Why would a fighter use the afterburner and air brakes at the same time?
Conditions in Firebase Remote Config Defaults
Firebase remote config condition by userIdCan I use Firebase remote config for updating strings.xml of Android app?Firebase Remote Config - “user in random percentile” with keyFirebase Remote Config fetch doesn't update values from the CloudAbout Firebase Remote Configuration limitationsUtilizing colors from firebase remote config in AndroidFirebase Remote Config A/B testing - Error in iOS experiment consoleFirebase remote config - language conditions not working - androidFirebase Remote Config Conditions Country/Region is not detected
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to set up Firebase Remote Config. One of important parts in my project is correct localization. So I have conditions for different languages set up in console. But now I'd like to make defaults xml. Example on github is to simple. There are only few values without any conditions. Documentation does not describe this format at all. So I'm wondering if it is possible to specify all my localizations in defaults.xml and how do I do this.
add a comment
|
I'm trying to set up Firebase Remote Config. One of important parts in my project is correct localization. So I have conditions for different languages set up in console. But now I'd like to make defaults xml. Example on github is to simple. There are only few values without any conditions. Documentation does not describe this format at all. So I'm wondering if it is possible to specify all my localizations in defaults.xml and how do I do this.
add a comment
|
I'm trying to set up Firebase Remote Config. One of important parts in my project is correct localization. So I have conditions for different languages set up in console. But now I'd like to make defaults xml. Example on github is to simple. There are only few values without any conditions. Documentation does not describe this format at all. So I'm wondering if it is possible to specify all my localizations in defaults.xml and how do I do this.
I'm trying to set up Firebase Remote Config. One of important parts in my project is correct localization. So I have conditions for different languages set up in console. But now I'd like to make defaults xml. Example on github is to simple. There are only few values without any conditions. Documentation does not describe this format at all. So I'm wondering if it is possible to specify all my localizations in defaults.xml and how do I do this.
edited Mar 28 at 15:19
Doug Stevenson
109k12 gold badges127 silver badges152 bronze badges
109k12 gold badges127 silver badges152 bronze badges
asked Mar 28 at 13:21
oleg.semenoleg.semen
1,46119 silver badges40 bronze badges
1,46119 silver badges40 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
The defaults file can't be used to specify conditions. It is just key/value pairs as shown. These values will be used before anything is actually fetched and cached from Firebase, for example, the first time your app is launched.
But language is available on device, there is no need to fetch it. So there is no other way of doing this except filling defaults with empty values, wrapping RemoteConfig with checks and return string resources in case it is empty ?
– oleg.semen
Mar 28 at 15:32
Android has its own way of localizing strings for values compiled into the app. Use that instead. developer.android.com/guide/topics/resources/localization
– Doug Stevenson
Mar 28 at 15:34
That's exactly what I'm talking about. If I want to use localized string in remote config it is possible to config it in console but it is not possible to setup defaults. In order to have localized defaults I have to write wrapper that use system localization.
– oleg.semen
Mar 28 at 15:45
BTW maybe you can share some insights on how it works ? If these values are stored under the same key suffixed by condition might it be possible to specify these key-value pairs for different languages in my defaults xml ?
– oleg.semen
Mar 28 at 16:14
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55398715%2fconditions-in-firebase-remote-config-defaults%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The defaults file can't be used to specify conditions. It is just key/value pairs as shown. These values will be used before anything is actually fetched and cached from Firebase, for example, the first time your app is launched.
But language is available on device, there is no need to fetch it. So there is no other way of doing this except filling defaults with empty values, wrapping RemoteConfig with checks and return string resources in case it is empty ?
– oleg.semen
Mar 28 at 15:32
Android has its own way of localizing strings for values compiled into the app. Use that instead. developer.android.com/guide/topics/resources/localization
– Doug Stevenson
Mar 28 at 15:34
That's exactly what I'm talking about. If I want to use localized string in remote config it is possible to config it in console but it is not possible to setup defaults. In order to have localized defaults I have to write wrapper that use system localization.
– oleg.semen
Mar 28 at 15:45
BTW maybe you can share some insights on how it works ? If these values are stored under the same key suffixed by condition might it be possible to specify these key-value pairs for different languages in my defaults xml ?
– oleg.semen
Mar 28 at 16:14
add a comment
|
The defaults file can't be used to specify conditions. It is just key/value pairs as shown. These values will be used before anything is actually fetched and cached from Firebase, for example, the first time your app is launched.
But language is available on device, there is no need to fetch it. So there is no other way of doing this except filling defaults with empty values, wrapping RemoteConfig with checks and return string resources in case it is empty ?
– oleg.semen
Mar 28 at 15:32
Android has its own way of localizing strings for values compiled into the app. Use that instead. developer.android.com/guide/topics/resources/localization
– Doug Stevenson
Mar 28 at 15:34
That's exactly what I'm talking about. If I want to use localized string in remote config it is possible to config it in console but it is not possible to setup defaults. In order to have localized defaults I have to write wrapper that use system localization.
– oleg.semen
Mar 28 at 15:45
BTW maybe you can share some insights on how it works ? If these values are stored under the same key suffixed by condition might it be possible to specify these key-value pairs for different languages in my defaults xml ?
– oleg.semen
Mar 28 at 16:14
add a comment
|
The defaults file can't be used to specify conditions. It is just key/value pairs as shown. These values will be used before anything is actually fetched and cached from Firebase, for example, the first time your app is launched.
The defaults file can't be used to specify conditions. It is just key/value pairs as shown. These values will be used before anything is actually fetched and cached from Firebase, for example, the first time your app is launched.
answered Mar 28 at 15:21
Doug StevensonDoug Stevenson
109k12 gold badges127 silver badges152 bronze badges
109k12 gold badges127 silver badges152 bronze badges
But language is available on device, there is no need to fetch it. So there is no other way of doing this except filling defaults with empty values, wrapping RemoteConfig with checks and return string resources in case it is empty ?
– oleg.semen
Mar 28 at 15:32
Android has its own way of localizing strings for values compiled into the app. Use that instead. developer.android.com/guide/topics/resources/localization
– Doug Stevenson
Mar 28 at 15:34
That's exactly what I'm talking about. If I want to use localized string in remote config it is possible to config it in console but it is not possible to setup defaults. In order to have localized defaults I have to write wrapper that use system localization.
– oleg.semen
Mar 28 at 15:45
BTW maybe you can share some insights on how it works ? If these values are stored under the same key suffixed by condition might it be possible to specify these key-value pairs for different languages in my defaults xml ?
– oleg.semen
Mar 28 at 16:14
add a comment
|
But language is available on device, there is no need to fetch it. So there is no other way of doing this except filling defaults with empty values, wrapping RemoteConfig with checks and return string resources in case it is empty ?
– oleg.semen
Mar 28 at 15:32
Android has its own way of localizing strings for values compiled into the app. Use that instead. developer.android.com/guide/topics/resources/localization
– Doug Stevenson
Mar 28 at 15:34
That's exactly what I'm talking about. If I want to use localized string in remote config it is possible to config it in console but it is not possible to setup defaults. In order to have localized defaults I have to write wrapper that use system localization.
– oleg.semen
Mar 28 at 15:45
BTW maybe you can share some insights on how it works ? If these values are stored under the same key suffixed by condition might it be possible to specify these key-value pairs for different languages in my defaults xml ?
– oleg.semen
Mar 28 at 16:14
But language is available on device, there is no need to fetch it. So there is no other way of doing this except filling defaults with empty values, wrapping RemoteConfig with checks and return string resources in case it is empty ?
– oleg.semen
Mar 28 at 15:32
But language is available on device, there is no need to fetch it. So there is no other way of doing this except filling defaults with empty values, wrapping RemoteConfig with checks and return string resources in case it is empty ?
– oleg.semen
Mar 28 at 15:32
Android has its own way of localizing strings for values compiled into the app. Use that instead. developer.android.com/guide/topics/resources/localization
– Doug Stevenson
Mar 28 at 15:34
Android has its own way of localizing strings for values compiled into the app. Use that instead. developer.android.com/guide/topics/resources/localization
– Doug Stevenson
Mar 28 at 15:34
That's exactly what I'm talking about. If I want to use localized string in remote config it is possible to config it in console but it is not possible to setup defaults. In order to have localized defaults I have to write wrapper that use system localization.
– oleg.semen
Mar 28 at 15:45
That's exactly what I'm talking about. If I want to use localized string in remote config it is possible to config it in console but it is not possible to setup defaults. In order to have localized defaults I have to write wrapper that use system localization.
– oleg.semen
Mar 28 at 15:45
BTW maybe you can share some insights on how it works ? If these values are stored under the same key suffixed by condition might it be possible to specify these key-value pairs for different languages in my defaults xml ?
– oleg.semen
Mar 28 at 16:14
BTW maybe you can share some insights on how it works ? If these values are stored under the same key suffixed by condition might it be possible to specify these key-value pairs for different languages in my defaults xml ?
– oleg.semen
Mar 28 at 16:14
add a comment
|
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55398715%2fconditions-in-firebase-remote-config-defaults%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown