walterholohan / react-native-crisp-chat-sdk

React-Native bridge for Crisp Chat iOS and Android SDK's
MIT License
70 stars 26 forks source link

pushSessionEvent is not a function iOS #12

Closed MichaelHuy closed 3 years ago

MichaelHuy commented 3 years ago

Hi all, I got this error when using pushSessionEvent on iOS

TypeError: _reactNativeCrispChatSdk.default.pushSessionEvent is not a function. (In '_reactNativeCrispChatSdk.default.pushSessionEvent("Login", _reactNativeCrispChatSdk.CrispSessionEventColors.blue)', '_reactNativeCrispChatSdk.default.pushSessionEvent' is undefined)

Any advice? Thanks

MichaelHuy commented 3 years ago

I follow the Readme file CrispChatSDK.pushSessionEvent(name: "Signup", color: CrispSessionEventColors.blue) (iOS only) , But it shows the same error above

walterholohan commented 3 years ago

Hey @MichaelHuy , thank you for raising this issue. I have just pushed a fix for this. It can be found in 0.5.0 (https://github.com/walterholohan/react-native-crisp-chat-sdk/releases/tag/v0.5.0)

walterholohan commented 3 years ago

Closing issue. Fix can found here https://github.com/walterholohan/react-native-crisp-chat-sdk/releases/tag/v0.5.0