crisp-im / crisp-sdk-ios

:package: Crisp iOS SDK, add a chat in any iOS app and communicate with your users.
https://docs.crisp.chat/guides/chatbox-sdks/ios-sdk/
Other
43 stars 18 forks source link

Issue with Event Parameters Limit #95

Open anestisKons opened 2 months ago

anestisKons commented 2 months ago

Hello,

I encountered an issue related to events in CrispSDK and would like to know if this is a limitation or if I'm doing something wrong.

When I try to send an event and add parameters to that event, if the parameters exceed 10, the event does not get sent without any warning or error. I also checked the documentation but couldn't find any related information about this.

Example:

let event = SessionEvent(name: "name", color: .blue)

event.setString("1", forKey: "string_1")
event.setString("2", forKey: "string_2")
...
event.setString("10", forKey: "string_10")

CrispSDK.session.pushEvents([event])
// This event is sent successfully

// But if I add one more parameter
event.setString("11", forKey: "string_11")
// Then the event does not show up in the Crisp platform

Is there a known limitation on the number of parameters that can be added to an event? Any guidance or insights would be greatly appreciated.

Thank you!