I am facing an ANR in my app launch class | Community
Skip to main content

Hello ,while init intercom sdk in App.kt which is app launch class ANR is produced please find the error below

main (runnable):tid=1 systid=8183 
at io.intercom.android.sdk.identity.AppConfig.<init>(AppConfig.java:125)
at io.intercom.android.sdk.Injector.initWithAppCredentials(Injector.java:104)
at io.intercom.android.sdk.RealIntercom.create(RealIntercom.java:80)
at io.intercom.android.sdk.Intercom.initialize(Intercom.java:73)
at yourpakagename.com.manager.IntercomManager.configure(IntercomManager.java:24)
at yourpakagename.com.App.onCreate(App.kt:95)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1277)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6771)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(unavailable)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2129)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7884)
at java.lang.reflect.Method.invoke(Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

 

I am using  10.0.0 intercom version
io.intercom.android:intercom-sdk-base:10.0.0

 

Thanks

Hey @ali! Daniel from Customer Support Engineering here 🔧 

 

Thanks for flagging this with us! You are using a very old version of our Android SDK - can you try updating to the latest version to see if this works? 🤞 If it doesn’t, can you please share where exactly in your app’s flow this error is thrown? We may need you to share some sensitive info if this is the case, so if you are experiencing continued issues, I will escalate your query to our Messenger support team 🙌 


Hi  ​@Daniel M15    We’re facing the same ANR issue from intercom with the later version (it’s blocking at the function onCreate on main thread), could you guys please help us take a look at this one?
One thing to notice is it mainly happens on Android 14. 


We’re using "@intercom/intercom-react-native": "^8.3.0" and intercom android SDK: “15.14.0 “