Giter Site home page Giter Site logo

wootricsdk-ios's Introduction

Wootric

Wootric survey

GitHub license GitHub release Build Status CocoaPods Compatible Carthage compatible Platform Twitter

Requirements

  • iOS 8.0+

Demos

  • View the iOS demo video with referral prompt here.
  • View the iOS demo with App Store rating prompt here.

Installation

Using CocoaPods

The easiest way to get Wootric into your iOS project is to use CocoaPods.

  1. You can install CocoaPods using

    $ gem install cocoapods
  2. Create a file in your Xcode project called Podfile and add the following line:

    pod "WootricSDK", "~> 0.19.1"
  3. In your Xcode project directory run the following command:

    $ pod install
  4. CocoaPods should download and install the Wootric SDK, and create a new Xcode .xcworkspace file. Close your Xcode project and open the new .xcworkspace file.

Manually

If you want to, you can download the SDK and add it to your project without using any dependency manager. Note: Make sure you are using the latest version of Xcode and targeting iOS 8.0 or higher.

  1. Download & unzip the Wootric SDK

  2. In your Xcode project, go to General and drop the WootricSDK.framework on Embedded Binaries

Xcode

Make sure the "Copy items if needed" checkbox is checked.

Initializing Wootric

WootricSDK task is to present a fully functional survey view with just a few lines of code.

  1. Import the SDK's header:

    #import <WootricSDK/WootricSDK.h>
  2. Configure the SDK with your account token

    [Wootric configureWithAccountToken:<YOUR_TOKEN>];

    You can find the account token in your Wootric's account settings

  3. To display the survey (if user is eligible - this check is built in the method) use:

    [Wootric showSurveyInViewController:<YOUR_VIEW_CONTROLLER>];

And that's it! You're good to go and start receiving customer's feedback from your iOS app.

For more information on class methods, please refer to Wootric's docs.

Example

// Import Wootric
@import WootricSDK;

// Inside your view controller's viewDidLoad method

[Wootric configureWithAccountToken:YOUR_ACCOUNT_TOKEN];
[Wootric setEndUserEmail:@"[email protected]"];
[Wootric setEndUserCreatedAt:@1234567890];
// Use only for testing
[Wootric forceSurvey:YES];
// show survey
[Wootric showSurveyInViewController:self];

License

The WootricSDK is released under the MIT license. See LICENSE for details.

Contribute

If you want to contribute, report a bug or request a feature, please see CONTRIBUTING for details.

wootricsdk-ios's People

Contributors

diegoserranoa avatar jumpingdeeps avatar marinhero avatar nullsleep avatar edowling avatar prabhatjha avatar collinmmckinney 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.