microsoft / omnichannel-chat-sdk

Headless Chat SDK to build your own chat widget against Dynamics 365 Omnichannel Services.
MIT License
40 stars 40 forks source link

omnichannel-chat-sdk cannot work on React Native #232

Closed jie-meng closed 1 year ago

jie-meng commented 1 year ago

I try to use https://github.com/microsoft/omnichannel-chat-sdk on my React Native app to start a chat.

Environment: React Native 0.68.1 PC: MacOS 13.4.1 device: Android phone

Configure the project as the https://github.com/microsoft/omnichannel-chat-sdk README.md said.

Then when I call chatSDK.startChat(optionalParams);

I got following error:

ERROR  sendDefaultInitContext is only supported on browser
WARN  Possible Unhandled Promise Rejection (id: 0):
Error: UnsupportedPlatform
jie-meng commented 1 year ago
sendDefaultInitContext: false // Send default init context ⚠️ Web only

set sendDefaultInitContext: false will be ok