Vison_Fan | 2024-07-19 08:54:53 UTC | #1
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?
Vison_Fan | 2024-07-19 23:54:30 UTC | #2
@vpirat could you please also help my this query? thanks a lot. :smile:
David1 | 2024-07-23 18:22:33 UTC | #3
Hi,
- This is the documentation for Custom Attributes
- SDK doesn’t store the attributes locally, just sends them with the events/messages until the CA gets removed or updated.
- Could you please clarify, what do you mean by lost? If you want to re-add attributes, you can do so with 'updateCustomAttributes'.
- You can also reset the attributes with the 'updateCustomAttribute' funciton
Regards,
Vison_Fan | 2024-08-12 07:40:34 UTC | #4
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
David1 | 2024-08-14 20:03:29 UTC | #5
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.
system | 2024-09-13 20:04:12 UTC | #6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 27328