- iOS 8.0+
- View the iOS demo video with referral prompt here.
- View the iOS demo with App Store rating prompt here.
The easiest way to get Wootric into your iOS project is to use CocoaPods.
You can install CocoaPods using
$ gem install cocoapods
Create a file in your Xcode project called Podfile and add the following line:
pod "WootricSDK", "~> 0.10.0"
In your Xcode project directory run the following command:
$ pod install
CocoaPods should download and install the Wootric SDK, and create a new Xcode
.xcworkspacefile. Close your Xcode project and open the new
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.
Download & unzip the Wootric SDK
In your Xcode project, go to General and drop the WootricSDK.framework on Embedded Binaries
Make sure the "Copy items if needed" checkbox is checked.
WootricSDK task is to present a fully functional survey view with just a few lines of code.
Import the SDK's header:
Configure the SDK with your client ID and account token
[Wootric configureWithClientID:<YOUR_CLIENT_ID> accountToken:<YOUR_TOKEN>];
You can find the client ID on your Wootric's account settings on the API section.
To display the survey (if user is eligible - this check is built in the method) use:
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.
// Import Wootric @import WootricSDK; // Inside your view controller's viewDidLoad method [Wootric configureWithClientID:YOUR_CLIENT_ID accountToken:YOUR_ACCOUNT_TOKEN]; [Wootric setEndUserEmail:@"firstname.lastname@example.org"]; [Wootric setEndUserCreatedAt:@1234567890]; // Use only for testing [Wootric forceSurvey:YES]; // show survey [Wootric showSurveyInViewController:self];
The WootricSDK is released under the MIT license. See LICENSE for details.
If you want to contribute, report a bug or request a feature, please see CONTRIBUTING for details.