Skip to main content
Answered

Android Intercom Push Notification handling issue


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!

Best answer by mateusz.leszkiewicz

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.

View original
Did this topic help you find an answer to your question?

10 replies

mateusz.leszkiewicz
Intercom Team
Forum|alt.badge.img+5

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.


  • Author
  • New Participant
  • 4 replies
  • October 14, 2024

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


  • Author
  • New Participant
  • 4 replies
  • November 4, 2024

@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?


mateusz.leszkiewicz
Intercom Team
Forum|alt.badge.img+5

@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”


  • New Participant
  • 1 reply
  • January 9, 2025

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?


  • Author
  • New Participant
  • 4 replies
  • January 27, 2025

@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


mateusz.leszkiewicz
Intercom Team
Forum|alt.badge.img+5

@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. 


mateusz.leszkiewicz
Intercom Team
Forum|alt.badge.img+5

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings