Releases: qiscus/qiscus-sdk-android
Releases · qiscus/qiscus-sdk-android
Qiscus Chat SDK (core) v1.8.6
Changelog :
- remove unused permission read_media_image & video
Qiscus Chat SDK (core) v1.9.0
Changelog :
- Support encrypt decrypt in local db
*note :
- if you want add key for encrypt decrypt, you can add 8 char before init SDK
for example
/**
* The key length must be at least 8 characters.
* Make sure to save this key securely.
*/
final String secretKey = yourkey;
QiscusCore.setCustomKey(secretKey);
Qiscus.setup(this, QISCUS_SDK_APP_ID);
Qiscus Chat SDK (core) v1.8.5
Changelog :
- Prevent crash in file qiscusNetworkCheckerJobService.java
Qiscus Chat SDK (core) v1.8.4
Changelog :
- Bug Fixing Crash
Qiscus Chat SDK (core) v1.8.3
Changelog :
- update deprecated library for OnLifecycleEvent
- add param packageId (com.xxx.xxx) when registerDeviceToken
for example :
QiscusCore.registerDeviceToken(deviceToken, packageId);
Qiscus Chat SDK (core) v1.8.2
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
}
}
Qiscus Chat SDK (core) v1.8.1
Changelog :
- Fix ANR Issue
Qiscus Chat SDK (core) v1.8.0
Changelog :
- Update flow expired token
for example for handle new flow
//Subscribe to AllActivity
@Subscribe
public void onRefreshToken(QiscusRefreshTokenEvent event) {
if (event.isTokenExpired()) {
//need to call api refresh token when auto refresh token from be is false, by default is true from be
callRefreshToken();
} else if (event.isUnauthorized()) {
//need to force re login or re init qiscusCore
reLoginUser();
}
}
private void callRefreshToken() {
QiscusCore.refreshToken(new QiscusCore.SetRefreshTokenListener() {
@Override
public void onSuccess(QiscusRefreshToken refreshToken) {
}
@Override
public void onError(Throwable throwable) {
}
});
}
private void logoutUser() {
if (QiscusCore.hasSetupUser()) {
QiscusCore.clearUser();
}
//call flow re initiate SDK qiscusCore
}
Qiscus Chat SDK (core) v1.7.1
Changelog :
- Fix issues token after calling API profile in the flow feature refresh token
Qiscus Chat SDK (core) v1.7.0
Changelog :
- Support background thread