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 : Integrate in-app reviews (Unity) | Android Developers
Thank you.