Skip to main content
Answered

[Android] IllegalStateException in TaskStackBuilder when processing push notifications


Hi Intercom team,

We're encountering a crash in our production app related to the Intercom SDK when processing push notifications. The error occurs in TaskStackBuilder.getPendingIntent() with the following stack trace:
 

          Fatal Exception: java.lang.IllegalStateException: No intents added to TaskStackBuilder; cannot getPendingIntent
       at androidx.core.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:333)
       at androidx.core.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:313)
       at io.intercom.android.sdk.m5.push.ConversationDeepLinkRouterKt.buildBasePendingIntent(ConversationDeepLinkRouter.kt:85)
       at io.intercom.android.sdk.m5.push.ConversationDeepLinkRouterKt.buildIntentForDeepLinkScreen(ConversationDeepLinkRouter.kt:42)
       at io.intercom.android.sdk.m5.push.ui.DeepLinkStylePushUIKt.buildDeepLinkNotification(DeepLinkStylePushUI.kt:44)
       at io.intercom.android.sdk.m5.push.IntercomNotificationHandler$processDeepLinkPushNotification$1.invoke(IntercomNotificationHandler.kt:69)
       at io.intercom.android.sdk.m5.push.IntercomNotificationHandler$processDeepLinkPushNotification$1.invoke(IntercomNotificationHandler.kt:64)
       at io.intercom.android.sdk.m5.push.IntercomPushBitmapUtilsKt$loadBitmaps$1.invokeSuspend(IntercomPushBitmapUtils.kt:59)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
       at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
       at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)


Intercom SDK version: 15.15.0

Could you confirm if this is a known issue? If so, is there a recommended workaround or fix?

Any guidance would be greatly appreciated. Thanks!

Best answer by JuanFraga

Another workaround is downgrading to Intercom SDK 15.13.0

View original

Forum|alt.badge.img

My team is seeing this as well.


  • New Participant
  • April 7, 2025

Adding a deeplink to Mobile Push notifications does prevent the crash, but it might be risky long-term since it doesn’t address the root cause. Could the Intercom team confirm if this is a known issue and provide an official fix in an upcoming SDK version? This crash is affecting multiple users, so a stable solution would be highly appreciated.


  • New Participant
  • April 7, 2025

Another workaround is downgrading to Intercom SDK 15.13.0


Reply


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