Is there a way to check if a user really rated your application?

I am writing a WP7 application and I have code to ask the user about viewing the market every five starts with an exponential deviation, so it is less annoying. If the user clicks β€œok” in the β€œDo you want to view” message box, I run the browse task and I save that the user has viewed the application, so I don’t ask anymore.

var marketplaceReviewTask = new MarketplaceReviewTask(); marketplaceReviewTask.Show(); IsolatedStorageSettings.ApplicationSettings["HasReviewed"] = true; 

However, although they probably really appreciated the app, I'm not really 100% sure. Is there a way to check if the current user actually wrote a review? Does the MarketplaceReviewTask () property have a value of returnvalue? I could not find anything that would indicate that I could listen to him.

+6
source share
2 answers

No, MarketplaceReviewTask does not have any events that return a value. The case with most Launcher tasks. Chooser tasks have events to collect information. As @willmel said in a comment, this is like an invasion of privacy.

+3
source

You can create a check that will be checked locally if the user has previously rated the application. Take a look at the following code:

 public void reviewfunction() { //For Windows phone 8 app var settings = IsolatedStorageSettings.ApplicationSettings; //For windows phone 8.1 app or universal app use the following line of code //var settings = Windows.Storage.ApplicationData.Current.LocalSettings; //set the app name string Appname = "My app"; if (!settings.Contains("review")) { settings.Add("review", 1); settings.Add("rcheck", 0); } else { int no = Convert.ToInt32(settings["review"]); int check = Convert.ToInt32(settings["rcheck"]); no++; if ((no == 4 || no == 7 || no % 10 == 0) && check == 0) { settings["review"] = no; MessageBoxResult mm = MessageBox.Show("Thank you for using this application.\nWould you like to give some time to rate and review this application to help us improve", Appname, MessageBoxButton.OKCancel); if (mm == MessageBoxResult.OK) { settings["rcheck"] = 1; MarketplaceReviewTask rr = new MarketplaceReviewTask(); rr.Show(); } } else { settings["review"] = no; } } } 

Hope this helps you. Source code can be downloaded from here .

0
source

Source: https://habr.com/ru/post/902509/


All Articles