Skip to main content

Hi ,

 

We have integrated android sdk for intercom in our Flutter app having version 12.3.0.

 

There are few exceptions/ANR that is reported on firebase which I would like to highlight. Can you guy please look into it and let us know the resolution for the same. The screenshots for this are also attached with this. Do let me know if there is anything else required to fix this.  

 

Here are the exceptions and its stack trace:-

 

1. IntercomPushManager.java line 51

 

main (runnable): tid=1 systid=24170 

#00 pc 0x458f1c libart.so 

#01 pc 0x6f98a8 libart.so 

#02 pc 0x701380 libart.so 

#03 pc 0x3b38c0 libart.so 

#04 pc 0x34a314 libart.so 

#05 pc 0x28b45c libart.so 

#06 pc 0x28a630 libart.so 

#07 pc 0x28a630 libart.so 

#08 pc 0x364b88 libart.so 

#09 pc 0x677bb0 libart.so 

    at java.lang.Class.classForName(Class.java)

    at java.lang.Class.forName(Class.java:454)

    at java.lang.Class.forName(Class.java:379)

    at io.intercom.android.sdk.IntercomPushManager.getFcmServiceClass(IntercomPushManager.java:51)

    at io.intercom.android.sdk.IntercomPushManager.fcmModuleInstalled(IntercomPushManager.java:40)

    at io.intercom.android.sdk.IntercomPushManager.getInstalledModuleType(IntercomPushManager.java:32)

    at io.intercom.android.sdk.RealIntercom.<init>(RealIntercom.java:118)

    at io.intercom.android.sdk.RealIntercom.create(RealIntercom.java:90)

    at io.intercom.android.sdk.Intercom$Companion.initialize(Intercom.java:565)

    at com.bedwal.bijak.mvp.BijakApplication.onCreate(BijakApplication.java:30)

    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1261)

    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7226)

    at android.app.ActivityThread.access$1800(ActivityThread.java:284)

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2284)

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

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

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

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

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

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

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

 

 

2. SurveyData.java

 

main (runnable): tid=1 systid=20397 

    at kotlin.jvm.internal.Intrinsics.checkNotNullParameter(Intrinsics.java:131)

    at io.intercom.android.sdk.survey.model.SurveyData.<init>(SurveyData.java)

    at io.intercom.android.sdk.survey.model.SurveyData.<init>(SurveyData.java:23)

    at io.intercom.android.sdk.survey.model.SurveyData.<clinit>(SurveyData.java:326)

    at io.intercom.android.sdk.store.OverlayStateReducer.<clinit>(OverlayStateReducer.java:31)

    at io.intercom.android.sdk.store.StoreFactory.<clinit>(StoreFactory.java:33)

    at io.intercom.android.sdk.store.StoreFactory.createStore(StoreFactory.java:55)

    at io.intercom.android.sdk.Injector.getStore(Injector.java:252)

    at io.intercom.android.sdk.Injector.getUserUpdater(Injector.java:292)

    at io.intercom.android.sdk.Injector.getLifecycleTracker(Injector.java:277)

    at io.intercom.android.sdk.Injector.initWithAppCredentials(Injector.java:110)

    at io.intercom.android.sdk.RealIntercom.create(RealIntercom.java:81)

    at io.intercom.android.sdk.Intercom$Companion.initialize(Intercom.java:565)

    at com.bedwal.bijak.mvp.BijakApplication.onCreate(BijakApplication.java:30)

    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211)

    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7506)

    at android.app.ActivityThread.access$1600(ActivityThread.java:310)

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281)

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

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

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

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

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

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

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

 

Hey @sheery​ ! Have you installed Intercom using the intercom_flutter package? If so it is a 3rd party plugin and we do not provide support for it. You can raise the issue here https://github.com/v3rm0n/intercom_flutter/issuesfor the package developer to have a look.


No @aparna​ , We are not using intercom_flutter package.

 

We are using native android sdk only and using it in Flutter with the help of method channels

 

implementation 'io.intercom.android:intercom-sdk:12.3.0'

 


@sheery​ Thanks for clarifying. Can you update to the latest version of our SDK and see if that helps?


Reply