Skip to main content

I'm having trouble with handling push notifications from Intercom. When a push notification is received and selected, it opens the message conversation view momentarily, but then immediately redirects to the app's home screen.

I am calling Intercom.client().handlePushMessage() in onResume() of the HomeActivity, but it seems like the Intercom SDK is not waiting for this method call. The issue is reproducible on the latest version (15.10.3) and the previous version (v15.9.1).

Here’s the code snippet:

  • Firebase Messaging Service class:
override fun onMessageReceived(remoteMessage: RemoteMessage) {
     val extras = remoteMessage.data
     if (intercomPushClient.isIntercomPush(extras)) { 
        intercomPushClient.handlePush(application, extras)
     } else {
         … 
     }
 }
  • HomeActivity class:
override fun onResume() {
super.onResume()
Intercom.client().handlePushMessage()
}

It is reproducible using latest version 15.10.3 and previous v15.9.1 as well.

Has anyone encountered a similar issue? Am I missing something in the way I’m handling push notifications?



Any help or suggestions would be appreciated!

Hi @Ronak Desai, It’s Mat from the Support Engineering Team 😀

It looks like unexpected behaviour I’ve created an Intercom conversation for our engineers to look into this issue.

Please continue this thread there.


Thanks, Mat. Feel free to reach out if you need more details, logs, or if you'd like to test any intermediate SDK.


@mateusz.leszkiewicz the new Android SDK v15.11.0 was recently released, but the release notes don’t mention the notification intent issue. Could you verify if this release resolves the notification handling bug?


@Ronak Desai even if it does not mention it specifically it is the first thing to do in order for our product team to pick up the issue and start resolving it. 
 


Reply