Help with rate my app

shkshaka

New member
Nov 4, 2013
37
0
0
Visit site
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
 

loverusham

New member
Aug 21, 2014
88
0
0
Visit site
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..
 

Adarsh Urs

New member
Mar 24, 2014
21
0
0
Visit site
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:
May 14, 2014
44
0
6
Visit site
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));
 

Members online

No members online now.

Forum statistics

Threads
326,613
Messages
2,248,635
Members
428,524
Latest member
Stepsjames