Latest 0.1.3
License MIT
Platforms ios 9.0
Dependencies SystemServices, UITextView+Placeholder


Inventiv Critic iOS Library

Use this library to add Inventiv Critic to your iOS app.

Critic iOS feedback reporting screen


To run the example project, clone the repo, and run pod install from the Example directory first.


  1. Add the Critic pod to your Podfile.
    pod 'Critic'
  2. Find your Product Access Token in the Critic Web Portal by viewing your Product’s details.
  3. Initialize Critic by starting it from your AppDelegate.
    // Swift
// Objective-C
[[Critic instance] start:@"YOUR_PRODUCT_ACCESS_TOKEN"];


Shake to Send Feedback Report

By default, Critic will prompt your users for feedback when they shake their device. You can disable this if desired.

// Swift
// Objective-C
[[Critic instance] preventShakeDetection];

Log Capture

By default, devices that are not connected to a debug session will pipe console output (stderr and stdout) to a log file, which is
included with submitted Reports. You can disable this behavior prior to starting Critic.

// Swift
// Objective-C
[[Critic instance] preventLogCapture];

If you are running a simulator and want to capture logs from the console, you can explicitly start log capture yourself.

// Swift
// Objective-C
[[Critic instance] startLogCapture];

Sending Customer Feedback Reports

You can show the default feedback report screen any time you like by calling the following method from a UIViewController.

// Swift
// Objective-C
[[Critic instance] showDefaultFeedbackScreen:self];

Change Text on Default Feedback Screens.

The text shown on the default feedback report screen and the shake detection dialog can be customized to your liking.

// Swift
Critic.instance().setDefaultShakeNotificationTitle("Easy, easy!")
Critic.instance().setDefaultShakeNotificationMessage("Do you want to send us feedback?")

Critic.instance().setDefaultFeedbackScreenTitle("Submit Feedback")
Critic.instance().setDefaultFeedbackScreenDescriptionPlaceholder("What's happening?nnPlease describe your problem or suggestion in as much detail as possible. Thank you for helping us out! 🙂");
// Objective-C
[[Critic instance] setDefaultShakeNotificationTitle:@"Easy, easy!"];
[[Critic instance] setDefaultShakeNotificationMessage:@"Do you want to send us feedback?"];

[[Critic instance] setDefaultFeedbackScreenTitle:@"Submit Feedback"];
[[Critic instance] setDefaultFeedbackScreenDescriptionPlaceholder:@"What's happening?nnPlease describe your problem or suggestion in as much detail as possible. Thank you for helping us out! 🙂"];

Sending Product-Specific Metadata with Reports.

You can add product-specific metadata through adding entries to the Critic.instance().productMetadata dictionary.

// Swift
Critic.instance().productMetadata["email"] = "[email protected]"
// Objective-C
[[[Critic instance] productMetadata] setObject:@"[email protected]" forKey:@"email"];

Customizing Feedback Reports

Use the NVCReportCreator to build your own reports for custom user experiences or other use cases. Perform NVCReportCreator work on a background thread.

// Swift
let reportCreator = NVCReportCreator()
reportCreator.description = "This is user-entered text about the idea or experience they wish to report."
reportCreator.metadata["Whatever key you want"] = "Whatever value you want"
reportCreator.create({(success: Bool, error: Error?) in
    if success {
        NSLog("Feedback has been submitted!")
    else {
        NSLog("Feedback submission failed.")
// Objective-C
NVCReportCreator *reportCreator = [NVCReportCreator new];
reportCreator.description = @"This is user-entered text about the idea or experience they wish to report.";
[report.metadata setObject:@"Whatever value you like" forKey:@"Whatever key you want"];
[report.attachmentFilePaths addObject:@"/absolute/path/to/desired/file.txt"];
[reportCreator create:^(BOOL success, NSError *error){
        NSLog(@"Feedback has been submitted!");
    } else {
        NSLog(@"Feedback submission failed.");

Viewing Feedback Reports

Visit the Critic web portal to view submitted reports. Below is some of the device and app-specific information included with every iOS report.

Critic iOS app info as view in the web portal
Critic iOS device info as view in the web portal


This library is released under the MIT License.

Latest podspec

    "name": "Critic",
    "version": "0.1.3",
    "summary": "iOS Library for accepting actionable customer feedback via Inventiv Critic.",
    "description": "iOS Library for accepting actionable customer feedback via Inventiv Critic. You can read more about Critic here:",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Dave Lane": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.3"
    "social_media_url": "",
    "platforms": {
        "ios": "9.0"
    "source_files": "Critic/Classes/**/*.{h,m,swift}",
    "resource_bundles": {
        "Critic": [
    "dependencies": {
        "SystemServices": [
            "~> 2.0.1"
        "UITextView+Placeholder": [
            "~> 1.2"

Pin It on Pinterest

Share This