Skip to main content

Hello!

 

We have an app written in Flutter, where we use the `intercom_flutter` package version 7.6.1. This package uses your Android SDK version 14.0.3.

 

With our latest release we received an app crash on our Play Console. The error message was:

io.intercom.android.sdk.m5.notification.InAppNotificationCardKt.addTicketHeaderToCompose

With the following stack trace:

Exception java.lang.IllegalStateException:

at androidx.compose.ui.platform.WindowRecomposer_androidKt.createLifecycleAwareWindowRecomposer (WindowRecomposer_androidKt.java:349)

at androidx.compose.ui.platform.WindowRecomposer_androidKt.createLifecycleAwareWindowRecomposer$default (WindowRecomposer_androidKt.java:324)

at androidx.compose.ui.platform.WindowRecomposerFactory$Companion$LifecycleAware$1.createRecomposer (WindowRecomposerFactory.java:168)

at androidx.compose.ui.platform.WindowRecomposerPolicy.createAndInstallWindowRecomposer$ui_release (WindowRecomposerPolicy.java:224)

at androidx.compose.ui.platform.WindowRecomposer_androidKt.getWindowRecomposer (WindowRecomposer_androidKt.java:299)

at androidx.compose.ui.platform.AbstractComposeView.resolveParentCompositionContext (AbstractComposeView.java:242)

at androidx.compose.ui.platform.AbstractComposeView.ensureCompositionCreated (AbstractComposeView.java:249)

at androidx.compose.ui.platform.AbstractComposeView.createComposition (AbstractComposeView.java:194)

at androidx.compose.ui.platform.ComposeView.setContent (ComposeView.java:420)

at io.intercom.android.sdk.m5.notification.InAppNotificationCardKt.addTicketHeaderToCompose (InAppNotificationCardKt.java:55)

at io.intercom.android.sdk.overlay.ChatNotification.populateViewsWithData (ChatNotification.java:111)

at io.intercom.android.sdk.overlay.ChatNotification.display (ChatNotification.java:71)

at io.intercom.android.sdk.overlay.InAppNotificationPresenter.addNewNotifications (InAppNotificationPresenter.java:184)

at io.intercom.android.sdk.overlay.InAppNotificationPresenter.displayNotificationsAfterAttach (InAppNotificationPresenter.java:90)

at io.intercom.android.sdk.overlay.InAppNotificationPresenter$1.run (InAppNotificationPresenter.java:79)

at io.intercom.android.sdk.utilities.ViewUtils$1.onGlobalLayout (ViewUtils.java:30)

at android.view.ViewTreeObserver.dispatchOnGlobalLayout (ViewTreeObserver.java:1084)

at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:4177)

at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2991)

at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:10665)

at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1301)

at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1309)

at android.view.Choreographer.doCallbacks (Choreographer.java:923)

at android.view.Choreographer.doFrame (Choreographer.java:852)

at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1283)

at android.os.Handler.handleCallback (Handler.java:942)

at android.os.Handler.dispatchMessage (Handler.java:99)

at android.os.Looper.loopOnce (Looper.java:226)

at android.os.Looper.loop (Looper.java:313)

at android.app.ActivityThread.main (ActivityThread.java:8741)

at java.lang.reflect.Method.invoke (Method.java)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)

at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)

We've already looked at https://github.com/v3rm0n/intercom_flutter/issues/273and made sure that everything is configured code-wise properly.

 

Is this an issue on your side or did we misconfigured something?

Hey @user1637​ Racheal from the support engineer team here👋 

 

We saw an issue similar to this in the past and our team suggested make MainActivity extend FlutterFragmentActivity instead of FlutterActivity. This fixed the issue for some of the users but a few users still see it and since it is a third party wrapper and issue not related to our SDK our team is not in a position to further investigate and this needs to be done by the app package developer. You can check the issue opened with the flutter app dev team by other customers who are using the wrapper here https://github.com/v3rm0n/intercom_flutter/issues/270/p>

 

Just as a heads up, we don't officially support installations on Flutter so there's a limit to the assistance that we can provide should you run into issues. In any case you're welcome to give this a try, and I'll let the team know that you'd like to see Flutter as an officially supported integration method in the future!


Reply