【问题标题】:How can I transfer players to the app store rating page?如何将玩家转移到应用商店评分页面?
【发布时间】:2019-07-31 13:48:49
【问题描述】:

我想鼓励玩家对我的游戏进行评分/评论。例如,当一名玩家在我的游戏中完成 5 个关卡后,他/她会被询问是否现在要创建评分/评论。如果他们接受并点击“是”按钮,那么我的游戏的 Apple App Store 或 Google Play Store 页面应该会在浏览器中打开,以便他们可以创建评级/评论。

如何打开我的游戏的 Apple App Store 或 Google Play Store 页面以便玩家创建评分?

如果应用程序在应用商店中仍处于测试模式,是否可以创建评分?

【问题讨论】:

标签: c# xamarin.android xamarin.ios


【解决方案1】:

创建 Intent 并设置额外信息后,调用 startActivity() 将其发送到系统。如果系统识别出多个可以处理该意图的 Activity,它会显示一个对话框(有时称为“消歧对话框”)供用户选择使用哪个应用程序,如图 1 所示。如果只有一个处理意图的活动,系统会立即启动它。

startActivity(intent);

【讨论】:

  • 好答案,我开始写一个,但你的给出了更多解释。希望对他有帮助
【解决方案2】:

如果使用Share PluginDevice Info,示例代码如下:

var url = string.Empty;
var appId = string.Empty;

if(CrossDeviceInfo.Current.Platform == Platform.iOS)
{
    appId = "your_id";
    url = $"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id={appId}&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software"
}
else if(CrossDeviceInfo.Current.Platform == Platform.Android)
{
    appId = "your_id";
    url = $"https://play.google.com/store/apps/details?id={appId}"
}

if(string.IsNullOrWhiteSpace(url))
  return;

await CrossShare.Current.OpenBrowser(url, new BrowserOptions
{
    UseSafariWebViewController = false
);
}

如果应用程序在应用商店中仍处于测试模式,是否可以创建评分?

我认为这是可能的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-09
    • 1970-01-01
    • 1970-01-01
    • 2011-03-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多