Android sdk 17.1.0 - Client not being dismissed on back navigation | Community
Skip to main content

When trying to log event with `Intercom.client().logEvent` I’m displaying the survey with intercom, the ui contains close button in the right top corner. When try dismissing it with “back” navigation, I go back and then being brought again into the intercom window. Is there a way to dismiss the intercom window? Intercom.client().hideIntercom() does not seem to work

It sounds like what’s happening is that the Intercom survey UI is being treated as its own activity on Android, so when you hit the back button it doesn’t fully clear out. That’s why you end up being dropped back into the Intercom screen again.

Intercom.client().hideIntercom() is mainly for hiding the Messenger launcher, not for force-closing active activities like surveys.

A couple of things you could try:

  • Call Intercom.client().logout() if you want to fully reset/dismiss the session (a bit heavy-handed, but it clears everything).

  • Wrap the survey launch in your own activity, so the back press closes your wrapper instead of bringing Intercom back up.

  • If this feels like buggy behavior in the SDK (since the close button works but back navigation doesn’t), I’d flag it to Intercom Support with the SDK version and logs so they can confirm if it’s a regression in 17.1.0.