How to link to GooglePlay to rate a game (Unity3d)?
Asked Answered
Y

3

5

I use Unity3d make a game. I want to make a button in the game, and players can click on this button to link GooglePlay and rate my game. What plugin I need and how to do this? I just found this: link

Yulma answered 9/8, 2017 at 7:3 Comment(2)
So whats wrong with the link you found?Voletta
@lan H. It can't help me.Yulma
A
9

After clicking on button call

Application.OpenURL ("market://details?id=" + Application.productName);
Alluring answered 9/8, 2017 at 7:27 Comment(2)
i think you should use Application.identifierMuseology
This did not worked for me. I used Application.identifier instead. It kept giving me error "To view this content, install and set up a web browsing app."Bristling
S
7

As you can change your application name and Google allow different name in the app and in the play store; better use Application.identifier rather than Application.productName;

You can not change your application identifier or Package name after uploading the first APK

public void OnClickRateUs()
{
    Application.OpenURL("market://details?id=" + `Application.identifier`);
}
Sloane answered 12/6, 2019 at 10:6 Comment(0)
B
6

After a couple of times that the user have used your application, you can popup a message asking the user to rate the app. And if the user tap on Ok on dialogue, you can redirect the him with the below link to playstore for rating.

Link with button pressed "https://play.google.com/store/apps/details?id=" + yourcurrentActivity.this.getPackageName() this link will open google playstore and show your application there.

PS. you can use Sharedprefs to keep record of the times the user launch your application.

Borszcz answered 9/8, 2017 at 7:37 Comment(2)
Thanks for you answer, now I know 2 ways to do this.I love you too.Yulma
glad to help you. Show your love by the green tick.. ;)Borszcz

© 2022 - 2024 — McMap. All rights reserved.