I have a very simple TextInput right now:
<TextInput settingsKey='code' label='Code' />
In my companion code on the settingsStorage.change event, the event key is correct ("code"), however the newValue returns a JSON string "{"name":"1234"}" instead of the expected value "1234". Is this expected behavior?
Answered! Go to the Best Answer.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
It's a known issue and we'll be looking to fix this in the future.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Is this fixed?
Best AnswerIs there a workaround?
Best AnswerI am using this workaround
<TextInput
label="IP:PORT"
value={props.settings.address}
onChange={value => props.settingsStorage.setItem('address', value.name)}
/>
Best AnswerHas it been fixed with SDK 6? SDK 4.3 still has this issue especially using a for loop for multiple contacts
[ '{"name":"+"}', '+1212', '+1212', '+1212' ] Where the first retrieved has this issue and then the rest don't. It creates a consistency issue.
Using .name on those values returns null, because it should be ."name" which returns a error
Best Answer