应用内购买的产品 ID 是否必须以反向 DNS 开头?
应用内购买的产品 ID 是否必须以反向 DNS 开头(如 com.mycompany.My_Awesome_Game.Level_Pack_1
),或者可以只是独立的(如 Level_Pack_1
)?
Does an In App Purchase's Product ID have to begin with a Reverse-DNS like com.mycompany.My_Awesome_Game.Level_Pack_1
or can it just be standalone like Level_Pack_1
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
产品 ID 可以是您想要的任何内容,但建议您遵循反向域名样式。但最终产品 ID 的命名没有任何限制。它也不需要使用您的应用程序包 ID 作为前缀。
来自来源:
因此,“Level_Pack_1”(如您的示例中所示)将是有效的产品 ID。
Product IDs can be whatever you want, although it is recomend you follow the reverse domain name style. But in the end there's no restriction over the naming of your product IDs. It also does not need to use your app bundle ID as a prefix.
From the source:
So 'Level_Pack_1' —as in your example— would be a valid product id.
这是一个老问题,但自从最近我一直在想同样的问题以来,我就被引导到这里。最终,当我在项目中逐步实施 IAP 时,我已经清楚了这一点:
This is an old question but I'm directed here since recently I've been wondering about the same question. Eventually as I walked through the implementation of IAP in my project this has become clear to me:
我已经遇到“没有收到应用内产品(0)”的情况了好几个月,试图解决这个问题。结果:
credits_1 不被允许,但credits1 工作正常!所以,不要使用任何 _- 符号
i have encountered "no in-app products received (0)" for many months tried to solve this problem. the result:
credits_1 was not allowed, but credits1 is working fine! so, don't use any _- symbols