In App Purchase的产品ID是否必须以反向DNS开头? [英] Does an In App Purchase's Product ID have to begin with a Reverse-DNS?

查看:101
本文介绍了In App Purchase的产品ID是否必须以反向DNS开头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

In App Purchase的产品ID是否必须以反向DNS开头,例如 com.mycompany.My_Awesome_Game.Level_Pack_1 ,还是可以像<$ c $一样独立c> 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?

推荐答案

产品ID可以是您想要的任何内容,尽管建议您遵循反向域名风格。但最终对产品ID的命名没有限制。它也不需要使用您的应用包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.

来自来源


问:我正在实施In App购买
并且必须注册我的产品
标识符。什么是产品
标识符以及如何创建和
在我的应用程序中使用它们?

Q: I am implementing In App Purchase and must register my product identifiers. What are product identifiers and how do I create and use them in my application?

A:产品标识符是字符串
用于唯一标识您希望从
申请中出售的每个
产品。 App Store使用它来
检索有关产品的信息。
这是一个字符串标识符,
只能包含字母数字
(A-Z,a-z,0-9),下划线(_)和
句点(。)字符。您可以为
标识符使用这些字符的任何
序列。但是,我们建议
在创建标识符时使用反向域名样式
(例如,
com.companyname.application.productid)

A: A product identifier is a string used to uniquely identify every product you wish to sell from your application. The App Store uses it to retrieve information about a product. It is a string identifier that can only contain alphanumeric (A-Z,a-z,0-9), underscore (_), and period (.) characters. You can use any sequence of these characters for your identifier. However, we recommend that you use the reverse domain name style (for example, com.companyname.application.productid) when creating your identifier.

所以'Level_Pack_1' - 在你的例子中 - 将是一个有效的产品ID。

So 'Level_Pack_1' —as in your example— would be a valid product id.

这篇关于In App Purchase的产品ID是否必须以反向DNS开头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆