In-App Chat SDK Android Version 1.6.0 Release

  • Updated

Announce: October 25, 2022


Hi there, Good news! We have made some improvements in chat SDK Android. Below is the list of changes:

  • New Flow expired token

Implementation: call API refresh token if the auto-refresh token is false from BE (by default is true), please contact us to set auto-refresh to be false.

For the implementation of manually calling the API refresh token, you can use this code.

    public void onRefreshToken(QiscusRefreshTokenEvent event) {
        if (event.isTokenExpired()) {
             if auto refresh token false from be, you need to call api refresh token manually
        } else if (event.isUnauthorized()) {
            //need to force logout
        } else {
            // do somethings
 private void callRefreshToken() {
        QiscusCore.refreshToken(new QiscusCore.SetRefreshTokenListener() {
            public void onSuccess(QiscusRefreshToken refreshToken) {

            public void onError(Throwable throwable) {

    private void logoutUser() {
        if (QiscusCore.hasSetupUser()) {

Note: Please contact us if you want to implement the flow expired token and manually or automatically call the API refresh token.

For further information, feedback, or questions about the changes above, please feel free to drop us some feedback at

Best regards,
Product Team

Was this article helpful?



Please sign in to leave a comment.