I will be using Managed Configurations in an app I am developing.
After getting some help with this answer, I do not understand how default values are used in Managed Configurations. My reference is this link.
In my reference under "Note", Google says, "The managed configurations Bundle contains one item for every configuration that has been explicitly set by a managed configurations provider. However, you cannot assume that a configuration will be present in the bundle just because you defined a default value in the managed configurations XML file."
I understand that if an item has not been explicitly set by a managed configurations provider, then that item will not be in the Bundle. But the next (last) line is not clear to me.
My main question is "what is the purpose of the defaultValue in the managed configurations XML file"? But I'm hoping the answer will also help answer or guide me to answering these questions too:
- Who can read the defaultValue?
- Can the managed app read it? If so, how?
- Can the managed configurations provider read it? If so, how?
- Why can't I assume that a configuration will be present in a bundle if it has a default value? Is the managed configurations provider responsible for reading the defaultValue and then explicitly setting it?