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

房东的猫 提交于 2020-06-12 07:05:20

问题


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


回答1:


After clicking on button call

Application.OpenURL ("market://details?id=" + Application.productName);



回答2:


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.




回答3:


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`);
}


来源:https://stackoverflow.com/questions/45583730/how-to-link-to-googleplay-to-rate-a-game-unity3d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!