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. 
 


Any update on this issue. I am facing the same issue on the SDK Version: “15.11.4”


Same with me. I am also using the same version “15.11.4”. Followed all the steps as mentioned in the documentation. But upon clicking push it  goes to the chat screen but exists immediately to the App Launcher screen. Could we get this resolved ASAP?


@mateusz.leszkiewicz 
In release notes of v15.11.5, it is mentioned that push notifications issue is fixe. But I verified it is not yet fixed. Verified latest version 15.13.0 also, it has same issue. Tapping push notification, conversation opens momentarily and then closed. The Intercom sdk is not waiting for “Intercom.client().handlePushMessage()” to open the conversation


@Ronak Desai Can you please reach out to us to flag this issue, so we can create a report for our engineers please?


@Ronak Desai ​@mateusz.leszkiewicz   Did you find any solution to the Issue or the Intercom team has resolved/communicated a way to fix this way. We are also facing the exact issue and it is not letting us Integrate Intercom and release the App to Production. 


@Sasank Sai Sunkavalli 
The issue is still being fixed. I will post some updates once it be resolved.


Reply