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()
{
	try
	{
		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
	}
	catch (Exception){}//Implement exception handling to prevent game crashes.
}

Platform::String^ MainPage::isRatingReview()
{
	try
	{
		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"
			}

		});
	}
	catch (...){}//Implement exception handling to prevent game crashes.
}

Positive evaluation

Open the positive feedback window

C#CPP

try
{
	MiracleGames.ApplicationManager.ShowRatingReviewAsync();
}
catch (Exception){}//Implement exception handling to prevent game crashes.

try
{
	MiracleGames::ApplicationManager::ShowRatingReviewAsync();
}
catch (...){}//Implement exception handling to prevent game crashes.

Receive positive results

C#CPP

try
{
	var result = await MiracleGames.ApplicationManager.ShowRatingReviewAsync();
	if (result.ReturnValue)
	{
		// The user has completed the positive feedback action
	}
}
catch (Exception){}//Implement exception handling to prevent game crashes.
try
{
	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.
		}
	});
}
catch (...){}//Implement exception handling to prevent game crashes.

Video Demonstration - Favourably Reviewed