Coder Social home page Coder Social logo

chuckpb / drift-sdk-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from driftt/drift-sdk-ios

0.0 0.0 0.0 35.28 MB

Drift for iOS, for integrating Drift into your iOS application.

Home Page: http://www.drift.com

License: MIT License

Ruby 1.14% Swift 98.68% Objective-C 0.19%

drift-sdk-ios's Introduction

Drift

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.7'

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 ๐Ÿค˜.

drift-sdk-ios's People

Contributors

brianmcdon avatar eoinoconnell avatar adamgammell avatar eliast avatar chuckpb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.