npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

capacitor-rate-app

v4.0.3

Published

Let users rate your app using native rate app dialog for both Android and iOS.

Downloads

25,995

Readme

Capacitor Rate App

Let users rate your app using native rate app dialog for both Android and iOS.

Please be aware of limitations for your platform, it's reason in 99% cases when dialog is not showing. Platform details: iOS limitations, Android limitations.

iOS rate popup

Installation

$ npm i --save capacitor-rate-app

or

$ yarn add capacitor-rate-app

Don't forget run cap sync command afterwards. For Capacitor 4 use older version of this plugin (capacitor-rate-app@3).

Usage

import { RateApp } from 'capacitor-rate-app';

RateApp.requestReview();

Demo

For more detailed example check demo app check demo app.

iOS limitations - IMPORTANT!

  1. You should only call request review when it makes sense in the user experience flow of your app, and then call the method only after the user has demonstrated some engagements on an app.
  2. You have no control over exactly what’s happening and the dialog displayed or its callbacks, that is determined entirely by the system.
  3. The system may or may not show a rating prompt, it’s not appropriate to call the API in response to a button tap or other user action because it is not going to happen every time.
  4. No matter how many times you call the API, the system will only show up to a maximum of 3 prompts to the same user in a 365-day period.
  5. The App Store defaults to showing ratings and reviews only for your app’s most recent version.
  6. The User can turn off this in settings.
  7. Apple might mandate this flow in future.
  8. In dev env, dialog is always shown, but you can't submit review.

Android limitations - IMPORTANT!

This is copied from official docs:

To provide a great user experience, Google Play enforces a time-bound quota on how often a user can be shown the review dialog. Because of this quota, calling the launchReviewFlow method more than once during a short period of time (for example, less than a month) might not always display a dialog.

Because the quota is subject to change, it's important to apply your own logic and target the best possible moment to request a review. For example, you should not have a call-to-action option (such as a button) to trigger the API, as a user might have already hit their quota and the flow won’t be shown, presenting a broken experience to the user. For this use case, redirect the user to the Play Store instead.

Note: The specific value of the quota is an implementation detail, and it can be changed by Google Play without any notice.