Latest 1.0.1
Homepage https://github.com/ajithrnayak/ReviewKit
License MIT
Platforms ios 10.3
Frameworks StoreKit
Authors

CI Status
Version
License
Platform

Example

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

Requirements

Available on SDK iOS 10.3+

Installation

ReviewKit is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ReviewKit'

Best Practices

  1. Human Interface Guidelines – Ratings and Reviews
  2. Sample Code – Requesting App Store Reviews

  3. SKStoreReviewController

Usage

Define rules to show prompt:

// Request to rate or/and write a review on 3rd, 20th app launches & repeat for every 100th app launch
let appLaunchInterval = RequestInterval(first: 3, second: 20, repeatEvery: 100)
let rule1 = RequestReviewRule(ruleType: .appLaunches, requestInterval: appLaunchInterval)

// Request to rate or/and write a review on 5th and 15th time user finishes Say Hello process. Request again on every 50th time.
let sayHelloProcessInterval = RequestInterval(first: 5, second: 15, repeatEvery: 50)
let rule2 = RequestReviewRule(ruleType: .customProcess(key: "SAY_HELLO"), requestInterval: sayHelloProcessInterval)

// Request to rate or/and write a review on 5th and 10th time user finishes Wave Bye process. Request again on every 20th wave bye.
let waveByeProcessInterval = RequestInterval(first: 5, second: 10, repeatEvery: 20)
let rule3 = RequestReviewRule(ruleType: .customProcess(key: "WAVE_BYE"), requestInterval: waveByeProcessInterval)

Increment the occurrence of event/process:

func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    // Registers and increments occurrence of app launch event
    ReviewManager.default.incrementOccurrence(for: .appLaunches)
    return true
}

Request for App rating/review

// Asks the user for ratings and review, if appropriate. 
ReviewManager.default.requestReview(for: appLaunchRule)

License

ReviewKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ReviewKit",
    "version": "1.0.1",
    "summary": "A helper to quickly integrate rate or review your app request using StoreKit.",
    "description": "A helper implementation to easily record different app engagment rules and then prompt request for app ratings and reviews using StoreKit.",
    "homepage": "https://github.com/ajithrnayak/ReviewKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ajithrnayak/ReviewKit.git",
        "tag": "1.0.1"
    },
    "social_media_url": "https://twitter.com/ajithrnayak",
    "platforms": {
        "ios": "10.3"
    },
    "source_files": "ReviewKit/Classes/**/*",
    "frameworks": "StoreKit",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This