This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
Version 0.0.43
Changes
The version includes backward compatibility for applications to omit the session resumption feature by supporting the legacy API. The following APIs are now available for session initialization:
New Session, without any credentials involved (legacy)
ninchatSession.start { (error: Error?) in
if let error = error {
/// Some errors in starting a new session.
}
/// Show the SDK UI.
}
New Session with credentials included in the callback
ninchatSession.start { (credentials: NINSessionCredentials?, error: Error?) in
if let error = error {
/// Some errors in starting a new session.
}
/// Save/Cache `credentials` for resuming the session later.
}
Resume Session using provided credentials
ninchatSession.start(with: credentials) { (credentials: NINSessionCredentials?, error: Error?) in
if let error = error {
/// Some errors in resuming the session.
}
/// Update saved/cached `credentials` with the new one.
}