반응형
앱 내에서 평점을 유도하기!!
우선 Play core 라이브러리 1.8.0 이상 사용해야 한다고 한다.
다운로드 링크 https://developers.google.com/unity/packages?hl=ko#tools 여기에서
com.google.play.review 패키지를 다운 받아서 설치!
작성 코드는 아래와 같다~
using Google.Play.Review; 선언해야 함.
var reviewManager = new ReviewManager();
// start preloading the review prompt in the background
var playReviewInfoAsyncOperation = reviewManager.RequestReviewFlow();
// define a callback after the preloading is done
playReviewInfoAsyncOperation.Completed += playReviewInfoAsync => {
if (playReviewInfoAsync.Error == ReviewErrorCode.NoError)
{
// display the review prompt
var playReviewInfo = playReviewInfoAsync.GetResult();
reviewManager.LaunchReviewFlow(playReviewInfo);
} else {
// handle error when loading review prompt
}
};
한 번 동작하고 난 이후로는 다시 출력되지 않는다.
테스트 시 주의할 것!
끝!
반응형
'개발 라이브러리' 카테고리의 다른 글
유니티 2022.3.50f1 실행시 관리자 권한 문제! (2) | 2024.10.14 |
---|---|
[unity] 구글스토어 64bit 요구 (0) | 2024.10.10 |
Unity에서 built-in render pipeline? (0) | 2024.09.26 |
bink(빙크) (*.bik, *.bk2) 파일 -> mp4, avi 변환 (0) | 2024.02.14 |
[Unity] This feature requires ASM7 (0) | 2023.07.24 |