Client is facing issue with .closeBot(). This is only happening for iOS. Android is working fine.
Their implementation is closing the chatbot on receiving an event with a URL (By calling the .closeBot() function). But it doesn’t close the bot and their routing logic works in the background.
Also, they are getting no event in the YMBotCloseEvent method Channel when calling the function. But on tapping the cross button on Top, they get an event.
Can you please confirm the event is sent like below snippet and sendIOSEvent is not changed in code
app.sendEvent({
code: 'sendIOSEvent', // don't change this
data: {
code: `<keep you code here>`, // this can be edited
data: JSON.stringify({"actionType": "login"}) // this can be edited
}
})
found there is issue with close button and is fixed in version 2.3.2