在Android应用程序中,通过使用"android play core library"不会弹出"In App Review"



希望安卓用户了解最近谷歌提供的"应用内评论";特色

我用java编写并使用了以下版本的核心库。

实现'com.google.android.play:core:1.8.0'

我的游戏商店应用程序之一的屏幕";OnCreate(("方法写在下面的一段代码中。通过启用调试点检查,所有代码都在执行;在APP审查中";弹出窗口。有人能帮忙吗,谢谢!!

ReviewManager manager = ReviewManagerFactory.create(this);
Task<ReviewInfo> request = manager.requestReviewFlow();
request.addOnCompleteListener(new OnCompleteListener<ReviewInfo>() {
@Override
public void onComplete(@NonNull Task<ReviewInfo> task) {
if (task.isSuccessful()) {
// We can get the ReviewInfo object
ReviewInfo reviewInfo = task.getResult();
Task<Void> flow = manager.launchReviewFlow(SelectShippingActivity.this, reviewInfo);
/*           flow.addOnCompleteListener(task2 -> {
// The flow has finished. The API does not indicate whether the user
// reviewed or not, or even whether the review dialog was shown. Thus, no
// matter the result, we continue our app flow.
});*/
flow.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task1) {
//For testing added println statement.
System.out.println(task1);
// The flow has finished. The API does not indicate whether the user
// reviewed or not, or even whether the review dialog was shown. Thus, no
// matter the result, we continue our app flow.
}
});
}
}
});

的一些人提出了类似的谷歌错误

https://issuetracker.google.com/issues/162969017

最新更新