为了实现促销代码,我执行了以下步骤:
在 Google Play Console>User Acquisition>Promotions 我添加了促销 Activity
在应用程序中,我使用它来将用户重定向到 Google Play 上的“兑换”页面:
try { final Uri redeemUri = Uri.parse("https://play.google.com/redeem"); final Intent redeemIntent = new Intent(Intent.ACTION_VIEW, redeemUri); activity.startActivity(redeemIntent); } catch (android.content.ActivityNotFoundException e) { // Play Store app is not installed }
当我实际点击兑换时,一切正常。它检测到我即将免费购买的 IAP,但它给我以下错误:
求助
最佳答案
根据 this thread ,Google 已对此错误代码作出回应,“这是一个我们知道的新出现的问题。我们的工程师正在努力解决。”
这似乎是兑换许多电影数字副本(有时是电子书)的问题。因此,这可能是他们兑换外部内容的系统的一个更普遍的问题。
但考虑到那是 3 天前的事,而这篇文章已有 6 个月大,我并不是特别抱有希望。
关于android - 如何实现 Google Play Promo Code 兑换?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51955044/