Showing rate pop-up

Note: The plugin doesn't support Windows 8 platform anymore

Editor testing provides an opportunity to see how this functionality will work in the Unity Editor:

MNRateUsPopup rateUs = new MNRateUsPopup ("rate us", "rate us, please", "Rate Us", "No, Thanks", "Later");
rateUs.SetAppleId (appleId);
rateUs.SetAndroidAppUrl (androidAppUrl);
rateUs.AddDeclineListener (() => { Debug.Log("rate us declined"); });
rateUs.AddRemindListener (() => { Debug.Log("remind me later"); });
rateUs.AddRateUsListener (() => { Debug.Log("rate us!!!"); });
rateUs.AddDismissListener (() => { Debug.Log("rate us dialog dismissed :("); });
rateUs.Show ();

On real device result for this API call is showed below:

if the user will select “Rate” option, he will be redirected to the app rating page. So We need to specify your app data before starting pop up.

Set apple Id for IOS app:

rateUs.SetAppleId (appleId);

Set Play Market Url for Android app:

rateUs.SetAndroidAppUrl (androidAppUrl);

Example format of the Apple store item:

public string appleId = "itms-apps://itunes.apple.com/id375380948?mt=8";

Example format of the Google store item:

public string androidAppUrl = "market://details?id=com.google.earth";

If you need to find out when the button "No, Thanks" pressed you should add a listener:

rateUs.AddDeclineListener (() => {
    Debug.Log("rate us declined");
});

If you need to find out when the button "Later" pressed you should add a listener:

rateUs.AddRemindListener (() => {
    Debug.Log("remind me later");
});

If you need to find out when the button "Rate app" pressed you should add a listener:

rateUs.AddRateUsListener (() => {
    Debug.Log("rate us!!!");
});

If you need to find out when the message dissmissed you should add a listener:

rateUs.AddDismissListener (() => {
    Debug.Log("rate us dialog dismissed :(");
});

MNRateUsPopup contains 1 constructor:

public MNRateUsPopup(string title, string message, string rateUs, string decline, string remind)