If I try to use Sendbird Javascript SDK v3.1.1 or upper with Sendbird Desk Javascript SDK v1.0.19 I will get this error: Uncaught SendBirdDeskError: SendBird SDK is missing.
If I change the Sendbird Javascript SDK to v3.0.160 it is working fine.
This is my code:
var sb = new SendBird({ appId: APP_ID });
sb.connect(USER_ID, function(user, error) {
if (error) {
console.log(error);
}
console.log('The user is connected to Sendbird server.');
SendBirdDesk.init(SendBird);
SendBirdDesk.authenticate(USER_ID, (user, error) => {
if (error) {
console.log(error);
}
console.log('The customer is authenticated and connected to Sendbird server.');
});
});
What is the issue here? How can I use the latest version of Sendbird Javascript SDK together with Sendbird Desk Javascript SDK?