You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anytime .Value is read from on a Var<string>, the string is treated as if its json when it is not, and the Value getter on AndroidVar and IOSVar ends up just returning defaultValue instead of the modified string from the dashboard.
Because the string is always treated as json, even know getVariableValue will return exactly the string provided on the dashboard and not a json object containing a string. Thus the object newValue = Json.Deserialize(jsonRepresentation); line always returns null causing things to always get into the branch that returns default value.
Anytime
.Value
is read from on aVar<string>
, the string is treated as if its json when it is not, and the Value getter on AndroidVar and IOSVar ends up just returning defaultValue instead of the modified string from the dashboard.The cause of this is from
clevertap-unity-sdk/CleverTap/Runtime/Android/AndroidVar.cs
Lines 11 to 28 in b6a2ab3
and
clevertap-unity-sdk/CleverTap/Runtime/IOS/IOSVar.cs
Lines 11 to 32 in b6a2ab3
Because the string is always treated as json, even know
getVariableValue
will return exactly the string provided on the dashboard and not a json object containing a string. Thus theobject newValue = Json.Deserialize(jsonRepresentation);
line always returns null causing things to always get into the branch that returns default value.I suspect this was caused by the fix in https://github.com/CleverTap/clevertap-unity-sdk/pull/61/files where all strings used to return quoted.
The text was updated successfully, but these errors were encountered: