I’m writing a SwiftUI app. I need to detect when user close an Intercom window.
Is that even possible?
I’m writing a SwiftUI app. I need to detect when user close an Intercom window.
Is that even possible?
Best answer by cameron.gumley
Hi Lucas! Cam with the Intercom Support Engineering team here.
I’m not overly familiar with SwiftUI but in case it proves useful (and presuming you’re using our iOS SDK in your App) I thought I’d mention this section in our iOS SDK Dev Docs which notes that “when the user closes the messenger, IntercomWindowWillHideNotification
and IntercomWindowDidHideNotification
will be fired” and which can therefore be used to detect when the Intercom window has been closed.
Let me know if that’s helpful - hope it is 😁.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.