In App Review Problem
Hello!
I called the function In App Review at level 6-20-30-40-50... in my game.First at level 6, The comment and star rating window opens. But if the player clicks the "Not Now" button and somehow closes the window without leaving comments and stars, In App Review doesn't work (not opening) anymore at other levels.
I tried it on 3 different phones by deleting and reinstalling the game. Likewise, the problem persists.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Google.Play.Review;
public class appreview : MonoBehaviour
{
private ReviewManager _reviewManager;
PlayReviewInfo _playReviewInfo;
void Start()
{
_reviewManager = new ReviewManager();
StartCoroutine(review());
}
public IEnumerator review()
{
yield return new WaitForSeconds(1f);
var requestFlowOperation = _reviewManager.RequestReviewFlow();
yield return requestFlowOperation;
if (requestFlowOperation.Error != ReviewErrorCode.NoError)
{
yield break;
}
_playReviewInfo = requestFlowOperation.GetResult();
var launchFlowOperation = _reviewManager.LaunchReviewFlow(_playReviewInfo);
yield return launchFlowOperation;
_playReviewInfo = null;
if (launchFlowOperation.Error != ReviewErrorCode.NoError)
{
yield break;
}
}
}
The guide i used : https://developer.android.com/guide/playcore/in-app-review/unity
Thank you.
Your answer
Follow this Question
Related Questions
Unity2d-Android-C#: How to convert current movement script to be used for touchscreen? 1 Answer
Allocating 2 GB of memory for strings on scene load? 0 Answers
"Set-up Android SDK path to make Android remote work" 2020.1.17f1 : \ into / 1 Answer
Mobile bloom kills performance 1 Answer
Semaphore Wait for signal Slows Down My Simple Android Game 0 Answers