Android 您如何检查用户是否在 Google Play 上为您的应用评分?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11284549/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you to check if a user has rated your app on the Google Play?
提问by Raghav Sood
I want to check to see if a user has rated my app on the Google Play, not how many stars, just if they have. And if they haven't I will prompt them with a dialog asking them to rate it with this code:
我想查看用户是否在 Google Play 上对我的应用进行了评分,而不是多少颗星,只要他们有。如果他们还没有,我会用一个对话框提示他们,要求他们使用以下代码对其进行评分:
startActivity( new Intent( Intent.ACTION_VIEW,
Uri.parse("market://details?id=packagename") ) );
回答by Raghav Sood
No. You cannot do this. And this is a good thing too -- otherwise you will be able to influence rating by giving people who rated it rewards and such. Additionally, developers would be able to retaliate to negative reviews if such an API were available. This might also violate certain legal agreements between the User and Google if Google starts revealing this data.
不,你不能这样做。这也是一件好事——否则你将能够通过给予评分者奖励等来影响评分。此外,如果此类 API 可用,开发人员将能够对负面评论进行报复。如果谷歌开始披露这些数据,这也可能违反用户与谷歌之间的某些法律协议。
However, this is what I personally do in my apps:
但是,这是我个人在我的应用程序中所做的:
- Let the user use the app 5 times, to get a good feel of it.
- Prompt the user on the sixth run to rate it with options for
Yes
,Later
andNever
. Later delays it by two days.
- 让用户使用该应用程序 5 次,以获得良好的感觉。
- 在第六次运行时提示用户使用
Yes
、Later
和选项对其进行评级Never
。后来推迟了两天。
回答by PVS
It does take an effort to get users to rate your app, especially if they like it! Unfortunately, negative ratings seem to take much less persuasion ;-)
让用户对您的应用程序进行评分确实需要付出努力,尤其是在他们喜欢它的情况下!不幸的是,负面评价似乎不太有说服力;-)
I've tried a few things, all involving an app button titled "Rate me!" or some such, which when clicked, opens the Market App on the phone. It has been my experience that most users who click the first "Rate me" button will spend an extra 5 secs to give you a stars-rating (and remember most users don't know that your app cannot track whether they actually provided a rating or not). They may not give you a wordy review, and limit it to only a few words ("Great app"), but hey take what you can get!
我尝试了一些东西,都涉及一个名为“给我评分!”的应用程序按钮。或者一些这样的,点击后会在手机上打开市场应用程序。根据我的经验,大多数点击第一个“给我评分”按钮的用户会多花 5 秒时间给你评分(记住大多数用户不知道你的应用无法跟踪他们是否真的提供了评分或不)。他们可能不会给您冗长的评论,并将其限制在几个字以内(“很棒的应用程序”),但是嘿,您可以得到什么!
回答by D.Snap
Actually you can do it, you can get the username by using this or similar...
其实你可以做到,你可以通过使用这个或类似的来获取用户名......
How can I get the google username on Android?
then fire a parser on https://play.google.com/store/apps/details?id=XURL...
然后在https://play.google.com/store/apps/details?id=XURL上触发解析器...
<span class="author-name"> <a href="/store/people/details?id=11">Andy Borris</a> </span>
<div class="tiny-star star-rating-non-editable-container" aria-label=" Rated 1 stars out of five stars "> <div class="current-rating" style="width: 20%;"></div> </div>
and then you can popup "rate me five stars or i will share your pictures with the world" :P lol just kidding
然后你可以弹出“给我打五颗星,否则我会与全世界分享你的照片”:笑开个玩笑
回答by Leo Paim
It is not possible to know automatically how rated your app. A good practice that I suggest is to select the best momment to rate in order to get a better review.
不可能自动知道您的应用程序的评级。我建议的一个好做法是选择最佳时刻进行评分,以获得更好的评价。
1 - First, find the best moment for rating. You can do this efficiently by selecting the momment that you solve the users pain. For example, if you were uberlike app, the best momment would be when the users get a ride safely and give a good review for the driver.
1 - 首先,找到评分的最佳时刻。您可以通过选择解决用户痛苦的时刻来有效地做到这一点。例如,如果您是 uberlike 应用程序,那么最好的时刻就是用户安全乘车并给司机好评。
2 - Then, code a dialog with Yes, Later and Never options and save to your database to ask later or not.
2 - 然后,使用 Yes、Later 和 Never 选项编写一个对话框,并保存到您的数据库以供稍后询问。
3 - Ask again on the next best momment.
3 - 在下一个最佳时刻再次询问。
回答by Zee
As other users mentioned before your best bet is to use a "Rate my app" button or dialog. If you use analytics you can track button clicks. If using Google Analytics you could assign event values for buttons displayed on the dialog box and see see how many users click "Rate" button.
正如其他用户之前提到的,您最好的选择是使用“评价我的应用”按钮或对话框。如果您使用分析,您可以跟踪按钮点击次数。如果使用 Google Analytics,您可以为对话框中显示的按钮分配事件值,并查看有多少用户点击了“评价”按钮。