GithubHelp home page GithubHelp logo

appstorereviewmanager's Introduction

AppStoreReviewManager

Swift Swift Package Manager compatible

Request an App Store review on specified action count numbers.

How to use

Using AppStoreReviewManager is as simple as:

ASRManager.default.requestReviewIfAppropriate()

Call the above function to increase actions count and request review if review worthy numbers contain the new actions count.

Reset values

// reset action count
ASRManager.default.resetReviewWorthyActionsCount()

// reset last version when prompted
ASRManager.default.resetLastVersionPromptedForReview()

Get values

// get the amount of actions
ASRManager.default.reviewWorthyActionsCount

// get the version when last promted for a review
ASRManager.default.lastVersionPromptedForReview

Review worthy actions

// default implementation will print "[10, 25, 50, 100, 200, 400, 600, 1200]"
print(ASRManager.default.reviewWorthyActionsNumbers)

// get or set the collections of review worthy action numbers
ASRManager.default.reviewWorthyActionsNumbers = [ 11, 22, 33, 44 ]

Delay

Often its nice to have a delay for the request to appear. When user does a review worth action it's smoother if waiting for some delay. Default implementation is 1.0 second.

// get or set the delay before a request appears (in sec)
ASRManager.default.delay = 1.2

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/lukasdanckwerth/AppStoreReviewManager.git", from: "1.0.0")
]

Requierments

  • iOS 10.3
  • Swift 5
  • StoreKit

appstorereviewmanager's People

Contributors

lukasdanckwerth avatar

Stargazers

 avatar

Watchers

 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.