UWP SDK favourably reviewed

Introduction

This article describes how to interface with the Miracle Games SDK's positive reviews interface to open the Microsoft Store's reviews window.

The triggering mechanism of the positive feedback function can be to reach the corresponding level, open a certain function or other forms, but the time of triggering should be controlled within the first 5 minutes of the new player's normal gameplay, the score of the positive feedback is a key reference index of Microsoft's release of resources, and also affects the subsequent sustained resources, so please make sure that developers pay attention to the positive feedback function.

Determine if a player has made a positive review (called after the user logs in)

C#CPP

public async void isRatingReview()
{
	if (!MiracleGames.ApplicationManager.SetupCompletedSuccessfully)
		return;

	var result = await MiracleGames.ApplicationManager.IsRatingReviewedAsync();
	if (result.ReturnValue)
	//result.ReturnValue==true: The user has made a positive comment.
	//result.ReturnValue==false: The user has not made a favourable comment
}

Platform::String^ MainPage::isRatingReview()
{
	concurrency::create_task(MiracleGames::ApplicationManager::IsRatingReviewedAsync())
		.then([](MiracleGames::Services::Core::Common::AsyncProcessResult^ result)
	{
		if (result->ReturnValue)
		{
			// "The user has made a positive comment."
		}
		else
		{
			//"The user has not made a favourable comment"
		}

	});
}

Positive evaluation

Open the positive feedback window

C#CPP

MiracleGames.ApplicationManager.ShowRatingReviewAsync();

MiracleGames::ApplicationManager::ShowRatingReviewAsync();

Receive positive results

C#CPP

var result = await MiracleGames.ApplicationManager.ShowRatingReviewAsync();
if (result.ReturnValue)
{
	// The user has completed the positive feedback action
}

concurrency::create_task(MiracleGames::ApplicationManager::ShowRatingReviewAsync()).then([this](MiracleGames::Services::Core::Common::AsyncProcessResult^ result)
{
	if (result->ReturnValue)
	{
		//returnValue If it is true, then the review is successful, the rest of the conditions are review failure or have already been reviewed.
	}
});