RATE APP: The correct way

What is the best way to ask a user for an rating for the app?

I have tried the
native.showPopup(“rateApp”, options) method but that takes you out from the app, (tested on Android)

is there a way that one can post a review without leaving the app?

native.showPopup("rateApp") will always take the user out of the app on Android.

If you want the user to rate without leaving your app, the option is the reviewPopup plugin, which uses the official in-app review APIs from google and apple. That shows a native rating dialog on top of your app, so the user can drop some stars right there.

You should take a look at the review popup plugin:

Documentation

2 Likes

Hi

Yes I also checked out that plugin, I get no errors on build but when running the app on a real android device I get this on 2025.3726 (building from Windows):

I dont now if some is using at the moment.

Are you including the plugin in your build.settings?

Yes of course,

  plugins = {
        "plugin.reviewPopUp" = {
            publisherId = "tech.scotth",
        },
    },

Even i checked under the cache folder AppData\Roaming\Solar2DPlugins\Caches\Solar2Directory\solar2d\tech.scotth

just to be sure the package was downloaded on prebuild

I only asked because that looks like the error message I get when I forget to include a plugin in build.settings. :grin:

1 Like

Did you add marketplaceId? I have never used this plugin, but from the documentation you need to add marketplaceId to it.

plugins = {
	["plugin.reviewPopUp"] = {
		publisherId = "tech.scotth",
		marketplaceId = "(replace with Account ID in account page)"
	}
}
2 Likes

You need to sign up on the plugin’s website and activate it to get your marketplaceId, just like ishtiak said. Check the docs carefully so you can see how it works.

Hi, just did that, now I don’t get the error on startup, but when I call reviewPopUp.show() nothing happens. This is my code:

local reviewPopUp = require "plugin.reviewPopUp"

reviewPopUp.init(function(e)
	if e.status == "ready" then
		reviewPopUp.show()
	end
	print(e.status)
end)

I receive the message “ready” from the console, so it looks everything is well impremented.

I have even tested building the demo app: GitHub - scottrules44/reviewPopUp-demo

Is this plugin maintained or is someone using it at the moment?

This plugin only supports iOS 10.3+ and Android 5.0+, and the system decides whether or not to show the popup.

BTW, I use it for ios only…