Ask Users to Rate and Review Your App
tip
Ratings and reviews from other users are important factors when people decide whether to install an app. Encourage users to rate and review your app on the store, but ask for their permission first and launch this intent only if they agree.
You can direct a user to your app's rating and review page on Myket.
Launch the intent
Replace APP_PACKAGE_NAME with your app's package name:
myket://comment?id=APP_PACKAGE_NAME
Example
- Java
- Kotlin
- Unity
String url = "myket://comment?id=ir.mservices.mybook";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
val url = "myket://comment?id=ir.mservices.mybook"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
startActivity(intent)
using UnityEngine;
public class MyketIntentExample : MonoBehaviour
{
public void OpenReviewPage()
{
#if UNITY_ANDROID && !UNITY_EDITOR
OpenMyketIntent("myket://comment?id=ir.mservices.mybook");
#endif
}
private static void OpenMyketIntent(string url)
{
using (var intentClass = new AndroidJavaClass("android.content.Intent"))
using (var uriClass = new AndroidJavaClass("android.net.Uri"))
using (var uri = uriClass.CallStatic<AndroidJavaObject>("parse", url))
using (var intent = new AndroidJavaObject(
"android.content.Intent",
intentClass.GetStatic<string>("ACTION_VIEW"),
uri))
using (var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
using (var activity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"))
{
activity.Call("startActivity", intent);
}
}
}
For testing, your app must be approved on Myket. After launching the intent, the user is taken through rating and then writing a review.