[intercom] Single page app login/logout
Migrated from #6 by @f2prateek
From https://github.com/segmentio/integration-intercom/issues/6
I'm using segment with intercom on a single page app that allows the user to login/logout without refreshing the page. It doesn't look like this use case was thought through though (or I'm using things incorrectly).
When I call window.analytics.user().reset() to clear the user data for a logout, the standard intercom shutdown method (window.Intercom('shutdown')) isn't called. I've worked around this by intentionally invoking the shutdown method.
However, that's created a bug with logging back in where calling analytics.identify(...) doesn't invoke window.Intercom('boot', ...). I can't as easily manually call this because I don't know where the intercom key is.
Would y'all take a look at supporting this use case?
I'm having this issue but with a server side rendered app.
Any update on this?
+1
+1
+1
+1
+1