Skip to content

Releases: qiscus/QiscusCore-iOS

Qiscus Chat SDK (core) v1.13.4

06 Nov 08:25
Compare
Choose a tag to compare

Changelog :

  • add deviceId when registerDeviceToken

Qiscus Chat SDK (core) v1.13.3

30 Oct 06:03
Compare
Choose a tag to compare

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

18 Sep 08:44
Compare
Choose a tag to compare

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

18 Sep 08:47
Compare
Choose a tag to compare

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

02 Jul 06:45
Compare
Choose a tag to compare

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

02 May 09:02
Compare
Choose a tag to compare

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

02 Apr 05:12
Compare
Choose a tag to compare

Changelog :

  • Add Privacy Info
  • Improve mechanism update comment

Qiscus Chat SDK (core) v1.10.6

17 Nov 09:24
Compare
Choose a tag to compare

Changelog :

  • Fix issues token after calling API profile in the flow feature refresh token

Qiscus Chat SDK (core) v1.10.5

13 Nov 04:49
Compare
Choose a tag to compare

Changelog :

  • Fix issues looping when failing to send a message

Qiscus Chat SDK (core) v1.10.4

11 Aug 03:39
Compare
Choose a tag to compare

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
       
       })