function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Swaminathan V 2Swaminathan V 2 

App crash in Live Agent chat for android

We are implementing the salesforce live agent chat in our android mobile application. Everything works fine. But we have a corner case.
Initiating the chat -> Opens chat window -> click on close button in window immediately [ within fraction of second ]. App will be crashed. Below is the log obtained from crash.

java.lang.NullPointerException: Session is not active. Unable to create LiveAgent Request. at at at at at at at at$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invoke(Native Method) at$ at

is there any method to overcome this issue. Any help appreciated.
Steve ThistleSteve Thistle
Hi Swaminathan,

Suggest you post your question on the official Salesforce Snap-Ins for Mobile community. The members there develop with or are the developers of the Service Sdk. They should be able to provide a prompt response and help you with the issue.

Evan IsnorEvan Isnor
Hey! I can answer this here. This is a known edge case that has been fixed for our upcoming release; unfortunately there is no workaround in the interim. We'll be publishing the next version of Snap-Ins Chat for Android on June 8th, so your issue should be resolved after you upgrade. If you experience any further issues please don't hesitate to get in touch with us on our Google Plus community as mentioned previously by Steve. We'll do our best to get back to you as soon as we can.

Snap-Ins Mobile for Android