Swiftpack.co - qiscus/QiscusCore-iOS as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by qiscus.
qiscus/QiscusCore-iOS 3.0.0-beta.14
Qiscus Core Chat SDK
⭐️ 13
🕓 4 weeks ago
iOS macOS
.package(url: "https://github.com/qiscus/QiscusCore-iOS.git", from: "3.0.0-beta.14")

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.7.0"),
    ]
)

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

GitHub

link
Stars: 13
Last commit: 6 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Qiscus Chat SDK (core) v1.9.0
6 days ago

Changelog :

  • Support XCode 14

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics