我如何测试我的应用内定价在其他货币中的显示方式?

huangapple go评论90阅读模式
英文:

How can I test how my in-app pricing looks like in other currencies?

问题

我使用Google Play计费库来管理应用内购买产品。

在使用我的应用时,我总是看到我的原始定价,以我的国家货币显示。价格出现在Google Play购买弹窗上,以及我使用getPrice()的地方。

我想要体验不同国家格式化价格的样式,以确保它在我的界面和计费界面上看起来正常。而且也只是为了亲眼看看自动转换是否正常工作。

我该如何做到这一点?

英文:

I use Google Play Billing library for an in-app product.

When using my app, I always see my original pricing, in my country's currency. The price appears on the Google Play purchase popup, and where I use getPrice().

I would like to experience the way the formatted price looks like in various countries, to make sure it looks fine with my own UI and the with the billing UI. And also just to see in my own eyes that the automatic conversions works.

How can I do that?

答案1

得分: 4

以下是已翻译的内容:

使用以下步骤,我能够实现这个目标:

  1. 在Google Play上设置一个测试帐户:https://developer.android.com/google/play/billing/test
  2. 在您的设备上使用所需国家的VPN。
  3. 打开您的应用程序并查看价格。

有时,用户界面可能不会立即更新(有时要等到第二天,有时只能在重新启动后才能看到价格)。但在购买时价格总是可见的。

编辑:要立即更新应用程序中的价格和货币的用户界面,请简单地清除Google Play的缓存。

英文:

With the following steps I was able to achieve this:

  1. Set up a test account on Google Play: https://developer.android.com/google/play/billing/test
  2. Use a VPN with the country you need on your device.
  3. Open your app and check the prices.

Sometimes, the UI may not be updated (sometimes until the next day, sometimes only after a reboot), but the prices can always be seen when buying.

Edit: To instantly update the UI of prices and currencies in the app, simply clear the Google Play cache.

huangapple
  • 本文由 发表于 2023年8月10日 20:07:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76875608.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定