This guide describes how to integrate in-app reviews in your app using Unreal Engine. There are separate integration guides for if you are using Kotlin or Java, native code or Unity.
Unreal Engine SDK overview
The Play In-App Reviews API is part of Play Core SDK family. The API for Unreal
Engine offers a UInAppReviewsManager class to request and launch the flow
using the RequestReviewFlow and LaunchReviewFlow methods. After a request is
made, your app can check the status of the request using
EInAppReviewErrorCode.
Supported Unreal Engine versions
The plugin supports Unreal Engine 5.0 and all subsequent versions.
Set up your development environment
Download the Play Unreal Engine Plugin from the GitHub repository.
Copy the
GooglePlayfolder inside yourPluginsfolder in your Unreal Engine project.Open your Unreal Engine project and click Edit → Plugins.
Search for Google Play and check the Enabled checkbox.
Restart the game project and trigger a build.
Open your project's
Build.csfile and add thePlayInAppReviewsmodule toPublicDependencyModuleNames:using UnrealBuildTool; public class MyGame : ModuleRules { public MyGame(ReadOnlyTargetRules Target) : base(Target) { // ... PublicDependencyModuleNames.Add("PlayInAppReviews"); // ... } }
Request the in-app review flow
Follow the guidance about when to request in-app reviews to determine good
points in your app's user flow to prompt the user for a review (for example,
after a user dismisses the summary screen at the end of a level in a game). When
your app gets close one of these points, use the UInAppReviewsManager create
an operation, as shown in the following example:
MyClass.h
void MyClass::OnReviewOperationCompleted(EInAppReviewErrorCode ErrorCode)
{
// ...
}
MyClass.cpp
void MyClass::RequestReviewFlow()
{
// Create a delegate to bind the callback function.
FReviewOperationCompletedDelegate Delegate;
// Bind the completion handler (OnReviewOperationCompleted) to the delegate.
Delegate.BindDynamic(this, &MyClass::OnReviewOperationCompleted);
// Initiate the review flow, passing the delegate to handle the result.
GetGameInstance()
->GetSubsystem<UInAppReviewsManager>()
->RequestReviewFlow(Delegate);
}
The method creates a
FRreviewOperationCompletedDelegateto handle the completion of the review operation.The delegate is bound to the
OnReviewOperationCompletedmethod, which will be called once the operation finishes.The
BindDynamicfunction ensures that the delegate is properly linked to the callback.The
RequestReviewFlow(Delegate)method starts the review process, passing the delegate to handle the result.The review operation runs asynchronously, allowing other tasks in the app to continue while it completes.
Once the operation finishes, the
OnReviewOperationCompletedcallback processes the result, including success or failure.
Launch the in-app review flow
Once the RequestReviewFlow operation is complete, you can launch the in-app
review flow. This is done by binding a delegate to handle the completion event,
ensuring the app reacts to the outcome (success or failure) of the review
request.
MyClass.h
void MyClass::OnReviewOperationCompleted(EInAppReviewErrorCode ErrorCode)
{
// ...
}
MyClass.cpp
void MyClass::LaunchReviewFlow()
{
// Create a delegate to bind the callback function.
FReviewOperationCompletedDelegate Delegate;
// Bind the completion handler (OnReviewOperationCompleted) to the delegate.
Delegate.BindDynamic(this, &MyClass::OnReviewOperationCompleted);
// Launch the review flow, passing the delegate to handle the result.
GetGameInstance()
->GetSubsystem<UInAppReviewsManager>()
->LaunchReviewFlow(Delegate);
}
Next steps
Test your app's in-app review flow to verify that your integration is working correctly.