Latest 1.2.6
Homepage https://github.com/Driftt/drift-sdk-ios
License MIT
Platforms ios 8.0, requires ARC
Dependencies Starscream, ObjectMapper, SlackTextViewController, AlamofireImage, SVProgressHUD
Authors

CocoaPods

DriftSDK is the official Drift SDK written in Swift enabling you to both send announcements and collect vital NPS responses all within the app!

Features:

  • Send NPS to your customers
  • Send Product announcements to your customers
  • Create conversations from your app
  • View past conversations from your app.

Getting Setup

Installation

DriftSDK can be added to your project using CocoaPods by adding the following line to your Podfile:

pod 'Drift', '~> 1.2.6'

Registering

To get started with the Drift iOS SDK you need an embed ID from your Drift settings page. This can be accessed here by looking after the drift.load method in the Javascript SDK.

In your AppDelegate didFinishLaunchingWithOptions call:

  Drift.setup("")

or in ObjC

  [Drift setup:@""];

Once your user has successfully logged into the app registering a user with the device is done by calling register user with a unique identifier, typically the id from your database, and their email address:

  Drift.registerUser("", email: "")

or in ObjC

  [Drift registerUser:@"" email:@""];

When your user logs out simply call logout so they stop receiving campaigns.

  Drift.logout()

or in ObjC

  [Drift logout];

Thats it. Your good to go!!

Messaging

A user can begin a conversation in response to a campaign or by presenting the conversations list

  Drift.showConversations()

or in ObjC

  [Drift showConversations];

Thats it. Your good to go!!

Contributing

Contributions are very welcome 🤘.

Latest podspec

{
    "name": "Drift",
    "version": "1.2.6",
    "summary": "Drift Framework for customer communication",
    "homepage": "https://github.com/Driftt/drift-sdk-ios",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Eoin O'Connell": "[email protected]"
    },
    "social_media_url": "http://twitter.com/drift",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/Driftt/drift-sdk-ios.git",
        "tag": "1.2.6",
        "submodules": false
    },
    "source_files": "Drift/**/*.{h,swift}",
    "resources": [
        "Drift/**/*.xib",
        "Drift/**/*.xcassets"
    ],
    "dependencies": {
        "Starscream": [],
        "ObjectMapper": [
            "~> 3.0"
        ],
        "SlackTextViewController": [
            "~> 1.9.3"
        ],
        "AlamofireImage": [
            "~> 3.0"
        ],
        "SVProgressHUD": [
            "~> 2.0"
        ]
    },
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This