qiscus / QiscusCore-iOS

Qiscus Core Chat SDK
http://qiscus.com
Other
14 stars 11 forks source link
chat-sdk chatbot message objective-c qiscus qiscus-core qiscus-sdk real-time swift

QiscusCore - Messaging and Chat Core API for iOS

Qiscus Enable custom in-app messaging in your Mobile App and Web using Qiscus Chat SDK and Messaging API

Platform Languages CocoaPods

Installation Cocoapods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate QiscusCore into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'QiscusCore'
end

Then, run the following command:

$ pod install

Installation Swift Package Manager (SPM)

You can use The Swift Package Manager to install QiscusCore by adding the proper description to your Package.swift file:

import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    dependencies: [
        .package(url: "https://github.com/qiscus/QiscusCore-iOS.git", from: "1.13.1"),
    ]
)

Installation Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate QiscusCore into your Xcode project using Carthage, specify it in your Cartfile:

$ github "qiscus/QiscusCore-iOS" "carthage-support"

Setup

Init AppId

Initiate qiscus with app id

QiscusCore.setup(WithAppID: "yourAppId")

Authentication

Authentication with UserID & UserKey

QiscusCore.login(userID: userID, userKey: key) { (result, error) in
    if result != nil {
        print("success")
    }else {
        print("error \(String(describing: error?.message))")
    }
}

Authentication with JWT

QiscusCore.login(withIdentityToken: identityToken, completion: { (result, error) in
     if result != nil {
        print("success")
     }else{
        print("error \(String(describing: error?.message))")
    }
})

Docs

for other documents can be viewed on this page, Qiscus Docs

Example

You can download example how to use QiscusCore with advance usage from QiscusCore Example.

Security Disclosure / Question / Other

If you any security disclosure, question, or other, you can make Ticket