I am developing with the Mobile Transport SDK. After I created the MessengerTransportSDK object, I immediately completed the customer attributes setup through the customAttributesStore function.
However, I found that in some cases, customer attributes would be lost. I did not find detailed descriptions of attributes in the Genesys portal. Please help explain the following questions, thanks.
Is there any detailed documentation about customer attributes? (Including in what event or state it will take effect or fail,
Will messageClient.customAttributesStore be stored locally after setting it or will it be stored on the server through a network request?
If customer attributes are lost, how can I reset them?
If I reset customer attributes, where should I reset them (event or state?
In the source code, I saw that attributes, once set, will always exist locally. And I didn't find an updateCustomAttribute function, does it exist in 2.7.0?
I don't know when it will be cleared. Therefore the value of attributes becomes unreliable
Apologies, the updateCustomAttributes is only available in the Mobile Messenger SDK.
For Transport SDK, to update custom attributes use CustomAttributesStore API that’s available through the MessagingClient:
client.customAttributesStore.add(mapOf("Company" to "Genesys"))
Updated custom attributes are sent with the next message. Custom Attributes are cleared on “onError” and “onSessionClosed”.
It may be worth considering re-adding attributes after such events.