Giter Site home page Giter Site logo

thebarbican19 / rateboi Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 27 KB

RateBoi is an open-source dependency for iOS & MacOS designed to make it easy to trigger reviews at the right time, built for BatteryBoi & SprintDock made by Joe Barbour

License: GNU General Public License v3.0

Swift 100.00%

rateboi's Introduction

Swift Version MacOS Support iOS Support tvOS Support watchOS Support visionOS Support

RateBoi

This Library is Unfinished & Untested.

Getting a user to write a positive review is all about timing. Get this wrong and best case scenario is they don’t review your app and you’ve missed your opportunity. The worst case is they do review it and leave a horrible review based on the bad experience.

RateBoi is an open-source dependency (GNU v3) for iOS & MacOS designed to make it easy to trigger reviews at the right time built for SprintDock & BatteryBoi

This is done by utilizing a ‘delight’ score. Once the delight score reaches a certain threshold in an amount of time, a callback/state is triggered and you can trigger a SkoreKit review prompt, or deliver your own custom UI and functionality.

Install

You can add this package to your project using Swift Package Manager. Enter the following url when adding it to your project package dependencies:

https://github.com/thebarbican19/RateBoi

Setup

From your AppDelegate or another initiation point, you can call the following setup function. Here, you can set the required threshold (points) and enable/disable debugging.

RateBoi.main.setup(points: 30, debug: true)

This function is not required, and by excluding it the required threshold will default to 20 points and debugging is triggered by the #DEBUG flag.

Scoring

RateBoi triggers the rate callback when a score is reached. Updating the score should be done when the user completes a positive action, like completing the onboarding, creating a new item, etc. You can set the amount of static number of points manually. The default is determined by the time between events, app opens, and usage (in-app) and errors. If positive events are triggered in quick succession then a callback will be triggered much faster. Similarly, if fatal errors have been triggered and only one previous positive event then the callback/state will not be called.

RateBoi.main.setup(points: 30, debug: true)

Callback

TBA

@Published State

TBA

rateboi's People

Contributors

thebarbican19 avatar

Stargazers

H. Kamran avatar Sébastien Dumont avatar

Watchers

 avatar  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.