Android Play Store 内购应用程序指南
复制一个包含安装步骤和本插件的完整Markdown指南的设置命令。
在Google Play上发布Android应用需要遵守Google的政策,尤其是那些包含内购和订阅的应用。这份指南涵盖了您需要通过审核成功的所有内容。
成功发布路径
标题为“成功发布路径”-
生成一个签名的 Android App Bundle
新 Google Play 应用程序应上传为 Android App Bundle (
.aab),而不是一个 sideloaded debug APK。如果您使用 Play App Signing,请务必安全地存储您的上传密钥,因为每次上传都会
versionCodeAndroid App Bundle 流程
-
如果您还没有开发者账户,请先
Play Console 注册 。然后,在Home > 创建应用 中,选择语言、应用/游戏类型、免费/付费状态、支持邮箱并接受所需的声明。在此之后,您可以
谨慎选择免费/付费设置。Google允许您将付费应用程序切换为免费应用程序,但一旦应用程序被免费提供后,就无法切换为付费。

-
完成应用内容和商店列表
在生产预览之前,完成所需的Play控制台申报:
- 隐私政策
- 广告
- 应用程序访问
- 目标受众和内容
- 内容评级
- 数据安全
- 如果适用,则完成敏感权限申报
-
运行Play-安装测试跟踪
从开始 内部测试 用于快速QA。如果您的开发者帐户是创建于2023年11月13日后的个人帐户,则您还必须完成一个 关闭测试 至少有12名已同意的测试者在14个连续的日子里参与测试后才能获得生产访问权限。

-
验证结算端到端
从Google Play安装应用,而不是从本地导出的APK。然后确认:
- 产品从Play正确加载
- 购买单据显示一个 测试购买 许可测试者的广告牌
- 购买后,权利才会解锁
- 恢复和订阅管理流程正常工作
Google Play Billing Requirements
《Google Play Billing Requirements》强制性付费系统
《强制性付费系统》对于数字商品和服务,您 必须 使用Google Play的付费系统:
数字商品(必须使用Play付费):
- 对高级功能的订阅
- 游戏内货币或积分
- 数字内容 (电子书, 音乐, 视频)
- 游戏升级和增强
- 应用解锁和高级等级
实物商品 (无法使用 Play Billing):
- 实物商品
- 现实世界服务
- 一次性捐款给非营利组织
:::note 订阅设置
在 Play Console 中,使用当前的订阅、基本计划和优惠模型配置 Android 订阅。 在 pass Base Plan ID nativeNative 购买的实现 native-purchasesnativeNative 购买的实现 planIdentifier.
:::
nativeNative 购买的实现
Section titled “原生购买的实施”import { NativePurchases, PURCHASE_TYPE } from '@capgo/native-purchases';
// Ensure billing is available on the deviceconst { isBillingSupported } = await NativePurchases.isBillingSupported();if (!isBillingSupported) throw new Error('Google Play Billing not available');
// Fetch subscription products (Store data is required—never hardcode pricing)const { products } = await NativePurchases.getProducts({ productIdentifiers: ['premium_monthly', 'premium_yearly'], productType: PURCHASE_TYPE.SUBS,});
// Plan identifiers are the Base Plan IDs you create in Google Play Consoleconst transaction = await NativePurchases.purchaseProduct({ productIdentifier: 'premium_monthly', planIdentifier: 'monthly-plan', // REQUIRED on Android, ignored on iOS productType: PURCHASE_TYPE.SUBS,});
console.log('Purchase token for server validation:', transaction.purchaseToken);透明度和披露要求
Section titled “透明度和披露要求”提前定价披露
Section titled “提前定价披露”Google Play 要求在购买前清晰披露所有费用:
必填元素:
- 用户本地货币的准确价格
- 计费频率(每月、每年等)
- 订阅中包含的内容
- 引导价的总费用
- 何时会产生收费

符合要求的 UI 示例:
function SubscriptionCard({ product }) { return ( <div className="subscription-card"> <h3>{product.title}</h3>
{/* Show intro offer if available */} {product.introductoryPrice && ( <div className="intro-offer"> <p className="intro-price">{product.introductoryPriceString}</p> <p className="intro-period"> for {product.introductoryPricePeriod} </p> </div> )}
{/* Regular price */} <div className="regular-price"> <p className="price">{product.priceString}</p> <p className="period">per {product.subscriptionPeriod}</p> </div>
{/* Clear description */} <p>{product.description}</p>
{/* Renewal terms */} <p className="terms"> Renews automatically. Cancel anytime in Google Play. </p>
<button onClick={() => handlePurchase(product)}> Subscribe Now </button> </div> );}自动续订声明
标题为“自动续订声明”在订阅自动续订之前,Google 需要:
- 清晰的通知,续订将发生
- 续订价格的提示
- 取消的便捷访问
跨平台定价透明度
标题:跨平台定价透明度如果您在多个平台上出售相同的权利,保持产品命名、计费周期、包含的福利和续订语言一致,以免用户感到惊讶。
由于税收、当地货币或商店经济学,价格可以合理地不同,但购买UI必须永远不会隐藏这些差异或暗示Google Play将收取的续订成本与实际不同。
隐私政策要求
标题:隐私政策要求强制隐私政策
标题:强制隐私政策如果您的应用程序包含内购功能,则必须:
-
在Play Store列表中添加链接
- 在Play控制台中添加隐私政策URL
- __CAPGO_KEEP_0__
- __CAPGO_KEEP_0__
-
在应用内链接
- 在应用设置中显示隐私政策
- 在收集用户数据之前显示
- 易于发现
示例实现:
function SettingsScreen() { const openPrivacyPolicy = () => { window.open('https://yourapp.com/privacy', '_blank'); };
const openTerms = () => { window.open('https://yourapp.com/terms', '_blank'); };
return ( <div> <h2>Settings</h2>
<button onClick={openPrivacyPolicy}> Privacy Policy </button>
<button onClick={openTerms}> Terms of Service </button>
<button onClick={() => NativePurchases.manageSubscriptions()}> Manage Subscriptions </button> </div> );}数据安全部分
标题为“数据安全部分”Google Play要求在数据安全部分中详细说明:
对于IAP应用程序,声明:
- 购买历史收集
- 收件地址(发票)
- 设备ID(欺诈防御)
- 支付信息处理
- 分析数据收集
__CAPGO_KEEP_0__
应用内容声明
应用内容声明Google Play评论不仅仅是关于二进制文件。发布前,请务必完成以下声明: 政策和计划 > 应用内容.
最少需要审查:
- 隐私政策: 公共 URL 在 Play Console 中,及在需要时的应用内入口
- 广告: 声明应用是否包含广告
- 应用访问: 给审阅者提供工作凭证或清晰的测试路径,如果有任何屏幕被锁定
- 目标受众和内容: 匹配应用的真实受众
- 内容评级: 完成 IARC 问卷,以便应用不被标记为未评级
- 数据安全: 声明准确的数据收集、共享和安全实践
常见拒绝原因
标题:常见拒绝原因1. 缺失或错误的账单实施
标题:1. 缺失或错误的账单实施为什么会失败:
- 未使用Google Play Billing数字商品
- 使用过时的账单API
- 为订阅实施自定义支付解决方案
预防措施:
// ✅ Correct: Use native-purchases (uses Google Play Billing)await NativePurchases.purchaseProduct({ productIdentifier: 'premium_monthly', planIdentifier: 'monthly-plan', productType: PURCHASE_TYPE.SUBS,});
// ❌ Wrong: Custom payment processor for subscriptions// await CustomPayment.charge(user, 9.99);2. 价格不明确或隐含费用
标题为“2. 价格不明确或隐含费用”的部分为什么会失败:
- 仅在点击购买后显示价格
- 未在订阅前就透露额外费用
- 订阅条款模糊不清
预防措施:
function PurchaseScreen({ product }) { return ( <div> {/* Show ALL costs upfront */} <h2>Premium Subscription</h2>
<div className="pricing"> <p className="price">{product.priceString}/month</p> <p className="taxes">Taxes may apply based on location</p> </div>
<div className="features"> <h3>Includes:</h3> <ul> <li>Ad-free experience</li> <li>Unlimited cloud storage</li> <li>Priority support</li> </ul> </div>
<div className="terms"> <p> Subscription renews automatically unless cancelled at least 24 hours before the end of the current period. </p> <p> Manage or cancel in Google Play Subscriptions. </p> </div>
<button onClick={handlePurchase}> Start Subscription </button> </div> );}3. 欺骗性订阅模式
标题为“3. 欺骗性订阅模式”的部分为什么会失败:
- 预先选择高级选项
- 隐藏更便宜的替代方案
- 使取消订阅变得困难
- 制造假的紧迫感(“仅剩3个位置!”)


预防措施:
- 平等显示所有订阅等级
- 使取消订阅清晰和易于访问
- 避免倒计时器或假的稀缺
- 不要使用黑暗模式来推广昂贵的选项
4. 测试不完整
第 4 节:测试不完整为什么会失败:
- 应用程序在购买时会崩溃
- 产品无法加载
- 购买确认未显示
- 购买后premium功能未解锁
- 测试仅在sideloaded构建上进行,而不是在Play安装的测试跟踪上
预防措施:
import { NativePurchases, PURCHASE_TYPE } from '@capgo/native-purchases';
// Comprehensive testing before submissionasync function testPurchaseFlow() { try { // 1. Test product loading const { products } = await NativePurchases.getProducts({ productIdentifiers: ['premium_monthly', 'premium_yearly'], productType: PURCHASE_TYPE.SUBS, }); console.log('✓ Products loaded:', products.length);
// 2. Test purchase flow const transaction = await NativePurchases.purchaseProduct({ productIdentifier: 'premium_monthly', planIdentifier: 'monthly-plan', productType: PURCHASE_TYPE.SUBS, }); console.log('✓ Purchase completed', transaction.transactionId);
// 3. Verify entitlements const { purchases } = await NativePurchases.getPurchases({ productType: PURCHASE_TYPE.SUBS, }); if ( purchases.some( (purchase) => purchase.productIdentifier === 'premium_monthly' && ['PURCHASED', '1'].includes(purchase.purchaseState ?? '') && purchase.isAcknowledged, ) ) { console.log('✓ Premium features unlocked'); }
// 4. Test restore await NativePurchases.restorePurchases(); console.log('✓ Restore works');
} catch (error) { console.error('✗ Test failed:', error); }}5.隐私政策违规
第 5 节:隐私政策违规为什么会失败:
- 应用中没有隐私政策链接
- 无法访问隐私政策
- 未披露数据收集
- 数据安全部分不准确
预防措施:
- 在Google Play商店列表中添加隐私政策
- 在应用设置中包含链接
- 准确填写数据安全部分
- 在添加新数据收集时更新政策
替代付款计划
标题为“替代付款计划”Google PlayBilling的替代付款计划是地区特定的,并可能会有所改变。如果您想使用除标准Google Play Billing之外的任何付款方式,请在实施之前立即在Play Console中确认市场资格、所需API和披露语言。
订阅管理
《订阅管理》简单取消
《简单取消》用户必须能够:
- 轻松查看活跃订阅
- 无需联系支持即可取消
- 了解取消生效时间
实施:
import { NativePurchases } from '@capgo/native-purchases';
function ManageSubscriptionButton() { const openManagement = async () => { try { // Opens Google Play subscription management await NativePurchases.manageSubscriptions(); } catch (error) { // Fallback to direct URL const playStoreUrl = 'https://play.google.com/store/account/subscriptions'; window.open(playStoreUrl, '_blank'); } };
return ( <button onClick={openManagement}> Manage Subscription in Google Play </button> );}取消期限
取消期限必备披露:
- 取消何时生效?
- 用户是否在期限结束前保持访问权限?
- 是否可获得部分退款?
function CancellationInfo() { return ( <div className="cancellation-info"> <h3>Cancellation Policy</h3> <ul> <li>Cancel anytime in Google Play</li> <li>Access continues until end of billing period</li> <li>No refunds for partial periods</li> <li>Resubscribe anytime to regain access</li> </ul>
<button onClick={() => NativePurchases.manageSubscriptions()}> Manage in Google Play </button> </div> );}提交前检查清单
提交前检查清单
-
验证付款实施
- 使用 Google Play Billing (通过 native-purchases)
- 在 Play Console 中创建的所有订阅产品
- 基本计划和优惠配置正确
- 产品激活并发布
- 为所有目标国家设置定价
-
测试购买流程
- 创建许可测试帐户
- 从 Play 测试跟踪安装构建
- 测试每个订阅级别
- 验证产品加载正确
- 测试购买完成
- 确认购买 测试购买 广告横幅出现
- 验证高级功能解锁
- 测试订阅恢复
- 在多台设备上测试
-
查看所有复制
- 价格在购买前清晰显示
- 所有费用在购买前透明
- 订阅条款清晰
- 取消过程解释
- 无误导性宣传
-
__CAPGO_KEEP_0__
- 在Google Play控制台中链接的隐私政策
- 在应用中可访问的隐私政策
- 广告声明已完成
- 如果应用被锁定,已添加应用访问说明
- 数据安全部分准确完成
- 已对权限进行了说明和文档
-
内容评级和目标受众
- 完成内容评级问卷
- 完成目标受众和内容部分
- 确保评级与实际内容相符
- 在问卷中声明应用内购买
-
准备商店列表
- 应用描述准确
- 短描述在 80 个字符以内
- 全描述在 4000 个字符以内
- 至少上传 2 个手机截图
- 上传 1024x500 的特性图标
- 截图显示当前版本
- 上传所有必需资产
审查时间线
标题为“审查时间线”新个人账户的生产访问: 通常在您申请后 7 天或更短时间内 首次上线审查: 如果有账单或政策问题,审查时间可能会更长 更新: 更新审查通常比首次上线审查快,但仍然需要审查 上诉: 计划在几天内提供准确的修复和审查人员指示
:::tip 持续审查 与苹果和谷歌不同,Google会持续审查应用。您的应用可能在审查期间随时上线,而不是在固定的时间。 :::
提交之前的测试
关于“提交之前的测试”许可证测试
关于“许可证测试”-
添加测试账户:
- 前往 Google Play 控制台
- 设置 > 许可证测试
- 添加 Gmail 账户进行测试
-
在沙盒中测试:
import { NativePurchases, PURCHASE_TYPE } from '@capgo/native-purchases';
// Test purchases with license test accountasync function testInSandbox() { const { isBillingSupported } = await NativePurchases.isBillingSupported(); if (!isBillingSupported) { console.error('Billing not supported in this environment'); return; }
// Fetch products (returns test pricing when using a license tester) const { products } = await NativePurchases.getProducts({ productIdentifiers: ['premium_monthly'], productType: PURCHASE_TYPE.SUBS, });
console.log('Test products:', products);
// Make test purchase (no charge) const transaction = await NativePurchases.purchaseProduct({ productIdentifier: 'premium_monthly', planIdentifier: 'monthly-plan', productType: PURCHASE_TYPE.SUBS, });
console.log('Test purchase complete:', transaction.transactionId);}- 验证测试横幅:
- 使用测试账户进行购买时
- 应该看到“测试购买”通知
- 不会发生实际费用
内部和封闭测试轨迹
标题为“内部和封闭测试轨迹”在生产发布之前:
- 创建一个 内部测试 用于快速QA的测试跟踪或一个 用于更广泛测试的封闭测试 上传一个已签名
- 并发布测试版本
.aab添加测试者邮箱地址并分享优惠链接 - 让测试者从Google Play安装
- 验证在Play安装的版本中,购买流程从头到尾都能正常工作
- 如果您的个人开发者帐户在2023年11月13日之后创建,请至少在申请生产版前14天内,保持至少12个测试者在封闭测试中激活
- 在Google Play Billing中验证时,侧载调试版本不能代替Play安装的测试版本
__CAPGO_KEEP_0__
原生购买最佳实践
原生购买最佳实践处理所有购买状态
处理所有购买状态import { NativePurchases, PURCHASE_TYPE } from '@capgo/native-purchases';
async function handlePurchase(productId: string, planIdentifier?: string) { try { setLoading(true);
const transaction = await NativePurchases.purchaseProduct({ productIdentifier: productId, planIdentifier, productType: planIdentifier ? PURCHASE_TYPE.SUBS : PURCHASE_TYPE.INAPP, });
console.log('Purchase token:', transaction.purchaseToken ?? transaction.receipt);
// Success - check entitlements from the store const { purchases } = await NativePurchases.getPurchases({ productType: planIdentifier ? PURCHASE_TYPE.SUBS : PURCHASE_TYPE.INAPP, });
const isOwned = purchases.some( (purchase) => purchase.productIdentifier === productId && (purchase.purchaseState === 'PURCHASED' || purchase.purchaseState === '1') && purchase.isAcknowledged, );
if (isOwned) { unlockPremiumFeatures(); showSuccess('Premium activated!'); }
} catch (error: any) { // Handle specific error cases switch (error.code) { case 'USER_CANCELLED': // User backed out - no error needed console.log('Purchase cancelled'); break;
case 'ITEM_ALREADY_OWNED': // They already own it - restore instead showInfo('You already own this! Restoring...'); await NativePurchases.restorePurchases(); break;
case 'ITEM_UNAVAILABLE': showError('This subscription is currently unavailable. Please try again later.'); break;
case 'NETWORK_ERROR': showError('Network error. Please check your connection and try again.'); break;
default: showError('Purchase failed. Please try again.'); console.error('Purchase error:', error); } } finally { setLoading(false); }}实现恢复购买
实现恢复购买import { NativePurchases, PURCHASE_TYPE } from '@capgo/native-purchases';
function RestorePurchasesButton() { const [loading, setLoading] = useState(false);
const handleRestore = async () => { setLoading(true);
try { await NativePurchases.restorePurchases();
const { purchases } = await NativePurchases.getPurchases({ productType: PURCHASE_TYPE.SUBS, });
const hasSubscription = purchases.some( (purchase) => purchase.productType === 'subs' && purchase.isAcknowledged, );
if (hasSubscription) { unlockPremiumFeatures(); showSuccess('Subscriptions restored!'); return; }
// Check one-time unlocks if needed const { purchases: iaps } = await NativePurchases.getPurchases({ productType: PURCHASE_TYPE.INAPP, }); const hasInApp = iaps.some((purchase) => purchase.productIdentifier === 'premium_unlock');
if (hasInApp) { unlockPremiumFeatures(); showSuccess('Previous purchases restored!'); return; }
showInfo('No previous purchases found.'); } catch (error) { showError('Failed to restore purchases. Please try again.'); } finally { setLoading(false); } };
return ( <button onClick={handleRestore} disabled={loading}> {loading ? 'Restoring...' : 'Restore Purchases'} </button> );}检查订阅状态
检查订阅状态import { NativePurchases, PURCHASE_TYPE } from '@capgo/native-purchases';
async function checkSubscriptionStatus() { try { const { purchases } = await NativePurchases.getPurchases({ productType: PURCHASE_TYPE.SUBS, });
const subscription = purchases.find( (purchase) => purchase.productIdentifier === 'premium_monthly' && (purchase.purchaseState === 'PURCHASED' || purchase.purchaseState === '1') && purchase.isAcknowledged, );
if (!subscription) { showPaywall(); return; }
console.log('Subscription active:', { productId: subscription.productIdentifier, expiresAt: subscription.expirationDate, willRenew: subscription.willCancel === false, purchaseToken: subscription.purchaseToken, });
unlockPremiumFeatures(); } catch (error) { console.error('Failed to check subscription:', error); }}如果您的应用被拒绝
如果您的应用被拒绝常见政策违规
常见政策违规支付政策:
- 未使用Google Play Billing
- 误导性订阅条款
- 隐含费用
用户数据政策:
- 缺少隐私政策
- 不准确的数据安全声明
- 过度权限
解决步骤
解决步骤-
查看违反通知
- 阅读所引用具体政策
- 了解Google标记的内容
- 查看他们提供的示例
-
修复问题
- 解决根本原因,而不是症状
- 在修复后彻底测试
- 记录所有所做的更改
-
提交申诉(如果适用)
Subject: Policy Violation Appeal - [App Name]Dear Google Play Review Team,I have received notification that my app violates [Policy X.Y].I have made the following changes to comply:1. [Specific change made]2. [Specific change made]3. [Specific change made]The updated version [version number] addresses all concerns raised.Test account for verification:Email: test@example.comPassword: TestPass123Thank you for your consideration.
-
重新提交或更新
- 上传修复版本
- 重新提交审核
- 在Google Play控制台中监控状态
额外资源
额外资源需要专家帮助?
需要专家帮助?在Play商店评论中导航可能会很复杂,尤其是当您需要结合账单合规、应用内容声明和测试跟踪设置时。如果您需要个人化的帮助:
- 完成Play商店评论准备
- 测试跟踪设置和测试者招募
- IAP实施审查
- 数据安全和隐私合规
- 拒绝处理和申诉
- 完成应用提交流程
我们的专家已经帮助数百个应用程序成功地通过Play商店的提交,并且可以帮助您了解当前的要求。
支持
标题:支持需要帮助实现?
- 查看 原生购买文档
- 检查 Android沙盒测试指南
- 访问 Google Play开发者支持