About customAttributes sometimes lost

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.

  1. Is there any detailed documentation about customer attributes? (Including in what event or state it will take effect or fail,
  2. Will messageClient.customAttributesStore be stored locally after setting it or will it be stored on the server through a network request?
  3. If customer attributes are lost, how can I reset them?
  4. If I reset customer attributes, where should I reset them (event or state?

@vpirat could you please also help my this query? thanks a lot. :smile:

Hi,

  1. This is the documentation for Custom Attributes
  2. SDK doesn’t store the attributes locally, just sends them with the events/messages until the CA gets removed or updated.
  3. Could you please clarify, what do you mean by lost? If you want to re-add attributes, you can do so with 'updateCustomAttributes'.
  4. You can also reset the attributes with the 'updateCustomAttribute' funciton

Regards,


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

Hi,

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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.