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”});