Rate Your Windows Phone App

Nice and easy (Would be easy to add to existing Corona native.showPopup(“rateApp”)  )

(Assuming you have set up the LUA/Interop function

Add to top of MainPage this:

using Microsoft.Phone.Tasks;

Add this to your OnCoronaRuntimeLoaded function:

e.CoronaRuntimeEnvironment.AddEventListener(“rateApp”, CoronaRateApp);

Add this code UNDER your MainPage:

    private CoronaLabs.Corona.WinRT.ICoronaBoxedData CoronaRateApp(

     CoronaLabs.Corona.WinRT.CoronaRuntimeEnvironment sender, CoronaLabs.Corona.WinRT.CoronaLuaEventArgs e)

        {

            MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();

            marketplaceReviewTask.Show();

            return null;

        }

Lua Code to bring up the rate function:

Runtime:dispatchEvent({name=“rateApp”});

Thanks for sharing this Rob!

I think you can also do this by making the following call in Lua…

   system.openURL(“zune:reviewapp”)

I haven’t tried the above, but according to Microsoft’s documentation, it’ll do the same as what you’ve posted.

OH thanks. Did not know that. I just used Microsft’s guide.  Ive just searched about this and looks like the Zune method might be a bit flaky so Ill stick with my way. Its really easy and worked first time which is a good sign.

Thanks for sharing this Rob!

I think you can also do this by making the following call in Lua…

   system.openURL(“zune:reviewapp”)

I haven’t tried the above, but according to Microsoft’s documentation, it’ll do the same as what you’ve posted.

OH thanks. Did not know that. I just used Microsft’s guide.  Ive just searched about this and looks like the Zune method might be a bit flaky so Ill stick with my way. Its really easy and worked first time which is a good sign.