Hi,
We are using Chat SDK V2 and we see some memory issues. We are presenting the chat as modal and on dismiss we could see instances of `ChatSDK` being retained. The view is getting destroyed properly.
[Strange I am unable to upload any images from the memory graph] so posting some of the contents... as you can see, if I go to the screen around 10 times, you get those many objects retained.
0. ChatSDK(74)
1. ChatEngineStarter (9)
2. ChatFormHandler(9)
3.ZDKChatEngine(9)
4.ZDKChatFormConfiguration(10)
We are building the UI like this
func buildUI() throws -> UIViewController {
// Name for Bot messages
let messagingConfiguration = MessagingConfiguration()
messagingConfiguration.name = “Bot"
let formConfiguration = ChatFormConfiguration(name: .required, email: .required, phoneNumber: .required, department: .required)
let chatConfiguration = ChatConfiguration()
chatConfiguration.isAgentAvailabilityEnabled = false
chatConfiguration.isPreChatFormEnabled = true
chatConfiguration.chatMenuActions = [.emailTranscript, .endChat]
chatConfiguration.preChatFormConfiguration = formConfiguration
// Build view controller
let chatEngine = try ChatEngine.engine()
return try Messaging.instance.buildUI(engines: [chatEngine], configs: [messagingConfiguration, chatConfiguration])
}
Dismissal of the modal won't cut the session, this would defeat the purpose of push notifications and the like. We talk about the conditions of when the session will terminate here.
Hope this helps