Skip to content

Qiscus Chat SDK (core) v1.8.2

Latest
Compare
Choose a tag to compare
@ariefnurputranto ariefnurputranto released this 18 Sep 08:55

Changelog :

  • add eventBus when success autoRefreshToken

for example :

 //implement this to all your activity
    @Subscribe
    public void onRefreshToken(QiscusRefreshTokenEvent event) {
        if (event.isTokenExpired()) {
            // isTokenExpired
        } else if (event.isUnauthorized()) {
           // isUnauthorized
        } else if (event.isSuccessAutoRefreshToken()){
            // success autoRefreshToken
        } else {
            // do somethings
        }
    }