This article introduces how to dock Miracle Games SDK Rate interface and how to open Microsoft Store rate interface.
bool isRatingReview=MiracleGames.ApplicationManager.IsRatingReview();
//Return value true=has been commented; false=not commented
MiracleGames.ApplicationManager.ShowRatingReview();
Register the praise reception event in app.xmal.cs, this event will be triggered after the player finishes the good comment.
MiracleGames.ApplicationManager.RatingReviewEvents += ratingReview;
async void ratingReview(object sender, MiracleGames.MiracleGamesEvent.RatingReviewEventArgs args)
{
//The returned data is a json string. Result=success,userId=userId, appKey=MG application key
new MessageDialog(args.ToString()).ShowAsync();
}