Help with rate my app

shkshaka

New member
Nov 4, 2013
37
0
0
Guys, please!

as tittle says.. I'm having difficulties about making the code for ask to user rate my app...
in fact I wanted to put a block containing the words "Rate" or sth like that and when people click on it, it would lead the person to the store and to... rate my app hehe...

May someone help me, pls?

thanks in advance
 
U don't need to make any code there are pre defined classes to do that .Just call them on a click.
For your current requirements:

Import Microsoft.phone.tasks;

Code :

ButtonOnClick(object sender, EventArgs e)
{ MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();

marketplaceReviewTask.Show();

}


It will call the Api and automatically lead u to your App's Page in the store for Users to Rate..
 
U don't need to make any code there are pre defined classes to do that .Just call them on a click.
For your current requirements:

Import Microsoft.phone.tasks;

Code :

ButtonOnClick(object sender, EventArgs e)
{ MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();

marketplaceReviewTask.Show();

}


It will call the Api and automatically lead u to your App's Page in the store for Users to Rate..


Nice, your answer is correct, but you should use Using Microsoft.phone.tasks; instead of Import Microsoft.phone.tasks; (I think you are in java development mood :) )

And it is better, if you use function with try, catch


Code:
public void RateTheApp()
        {
            try
            {
                MarketplaceReviewTask MRTask= new MarketplaceReviewTask();

                MRTask.Show();
            }

            catch { }
        }

Then call RateTheApp() function wherever you want.
 
Last edited:
And if you don't use Silverlight then you'll have to use "Windows.ApplicationModel.Store" and add the following code on a button click
Code:
await Windows.System.Launcher.LaunchUriAsync(
                new Uri("ms-windows-store:reviewapp?appid=" + CurrentApp.AppId));
 
thanks for the answers guys.. I'll try it out and then let you know if I accompished that :)
 

Members online

Forum statistics

Threads
339,474
Messages
2,262,497
Members
428,761
Latest member
Jamie1