Releases: qiscus/QiscusCore-iOS
Releases · qiscus/QiscusCore-iOS
Qiscus Chat SDK (core) v1.13.4
Changelog :
- add deviceId when registerDeviceToken
Qiscus Chat SDK (core) v1.13.3
Changelog :
- fix issue race condition status bubble message failed and pending changed to read after receiving new message
Qiscus Chat SDK (core) v1.13.2
Changelog :
- Bugfix Crash
- add delegate when success autoRefreshToken
for example
extension UIChatListPresenter : QiscusCoreDelegate {
func onRefreshToken(event: QiscusRefreshTokenEvent) {
if event == .isUnauthorized {
// isUnauthorized
}else if event == .isTokenExpired {
// isTokenExpired
}else if event == .isSuccessAutoRefreshToken {
//success autoRefreshToken
}
}
}
Qiscus Chat SDK (core) v1.13.1
Changelog :
- implement eventDelegate
for example :
QiscusCore.eventdelegate = self
extension AppDelegate : QiscusCoreEventDelegate {
func onDebugEvent(_ event: String, message: String) {
print("event =\(event) && message = \(message)")
}
}
Qiscus Chat SDK (core) v1.13.0
Changelog:
- Add bundleId when registerDeviceToken
for example
QiscusCore.shared.registerDeviceToken(token: deviceToken, isDevelopment: false, bundleId: appsBundleId, onSuccess: { (success) in
print("success register device token =\(deviceToken)")
}) { (error) in
print("failed register device token = \(error.message)")
}
Qiscus Chat SDK (core) v1.12.0
Changelog:
- update flow expired token
for example for handle new flow
//set delegate QiscusCoreDelegate to get event QiscusRefreshTokenEvent in AllViewController or other
extension UIChatListPresenter : QiscusCoreDelegate {
func onRefreshToken(event: QiscusRefreshTokenEvent) {
if event == .isUnauthorized {
//need to force re login or re init qiscusCore
if let deviceToken = UserDefaults.standard.getDeviceToken(){
QiscusCore.shared.removeDeviceToken(token: deviceToken, onSuccess: { (success) in
//success
}) { (error) in
}
}
QiscusCore.clearUser { (error) in
//re login or re initiate
let app = UIApplication.shared.delegate as! AppDelegate
app.auth()
}
}else if event == .isTokenExpired {
//need to call api refresh token when auto refresh token from be is false, by default is true from be
QiscusCore.shared.refreshToken { refreshToken in
} onError: { error in
}
}
}
}
Qiscus Chat SDK (core) v1.11.0
Changelog :
- Add Privacy Info
- Improve mechanism update comment
Qiscus Chat SDK (core) v1.10.6
Changelog :
- Fix issues token after calling API profile in the flow feature refresh token
Qiscus Chat SDK (core) v1.10.5
Changelog :
- Fix issues looping when failing to send a message
Qiscus Chat SDK (core) v1.10.4
Changelog :
- Add param publishEvent in func getAllRoom() & getAllChatRooms()
for example :
QiscusCore.shared.getAllChatRooms(showParticipant: true, showRemoved: false, showEmpty: true, page: 1, limit: 100, publishEvent: false, onSuccess: { (results, meta) in
}, onError: { (error) in
})