Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to link to GooglePlay to rate a game (Unity3d)?

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

like image 437
Adrian Min Avatar asked Aug 09 '17 07:08

Adrian Min


People also ask

Is Unity on the play store?

Stay organized with collections Save and categorize content based on your preferences. Unity is a cross-platform game engine used by many games on the Google Play Store.


2 Answers

After clicking on button call

Application.OpenURL ("market://details?id=" + Application.productName);
like image 176
Matúš Olejník Avatar answered Oct 21 '22 11:10

Matúš Olejník


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.

like image 30
deejay Avatar answered Oct 21 '22 11:10

deejay