We need to make shure that the value isn't a number
let validValue = parseInt(value).toString(); await Preferences.set({ key: 'key', value: validValue, });