MyGit

Wootric/WootricSDK-iOS

Fork: 24 Star: 13 (更新于 2024-12-10 19:11:01)

license: MIT

Language: Objective-C .

Wootric iOS SDK to show NPS, CSAT and CES surveys

最后发布版本: 0.28.0 ( 2024-05-24 05:24:49)

GitHub网址

Wootric

Wootric survey

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

Requirements

  • iOS 12.0+

Demos

  • View the iOS demo video with referral 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.28.0"
    
  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 9.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:@"nps@example.com"];
[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.

最近版本更新:(数据更新于 2024-10-08 18:04:17)

2024-05-24 05:24:49 0.28.0

2024-03-23 06:09:05 0.27.1

2024-02-29 10:15:17 0.27.0

2024-01-23 03:18:48 0.26.3

2023-08-09 02:11:19 0.26.2

2023-06-09 07:08:48 0.26.1

2023-06-02 01:54:09 0.26.0

2023-02-22 14:06:40 0.25.0

2023-02-17 06:44:47 0.24.1

2023-02-01 08:13:32 0.24.0

Wootric/WootricSDK-iOS同语言 Objective-C最近更新仓库

2024-11-18 13:27:42 roothide/Bootstrap

2024-09-15 10:49:02 focus-editor/focus

2024-09-02 19:28:18 opa334/TrollStore

2024-08-31 08:33:55 facebookincubator/SocketRocket

2024-08-22 18:45:46 SDWebImage/SDWebImage

2024-07-03 06:23:17 ccgus/fmdb