uni-app ios审核驳回,Guideline 3.1.1 - Business - Payments - In-App Purchase,求解决方法

发布于 1周前 作者 ionicwang 来自 Uni-App

uni-app ios审核驳回,Guideline 3.1.1 - Business - Payments - In-App Purchase,求解决方法

Guideline 3.1.1 - Business - Payments - In-App Purchase

We noticed that your app includes or accesses paid digital content, services, or functionality by means other than in-app purchase, which is not appropriate for the App Store. Specifically:

  • Your app accesses digital content purchased outside the app, such as 充值通话, but that content isn’t available to purchase using in-app purchase.

Next Steps

The paid digital content, services, or subscriptions included in or accessed by your app must be available for purchase in the app using only in-app purchase.

Apps that offer paid digital services and content across multiple platforms may allow customers to access the content they acquired outside the app as long as it is also available for purchase using in-app purchase. See Guideline 3.1.3(b) Multiplatform Services for more information.

If you have any additional information to provide regarding the digital content and services in your app and how the guidelines apply to them, please reply to this message in App Store Connect and let us know. If there is information you’d like us to consider in our review of future submissions, please feel free to include it in the App Review Information section of App Store Connect.

Resources

  • See how to implement in-app purchase with the StoreKit framework.
  • Review step-by-step instructions for creating in-app purchases in App Store Connect.
  • Learn more about our policies for apps that offer paid digital content and services.

3 回复

我也遇到了同样的问题,没有解决


有虚拟支付吗?

针对您提到的uni-app在iOS审核过程中因违反Guideline 3.1.1(关于应用内购买)而被驳回的问题,这通常意味着您的应用中存在数字商品或服务的购买,但没有正确实现或声明应用内购买(IAP, In-App Purchase)。以下是一些代码和配置示例,帮助您确保应用符合App Store的审核要求。

1. 确认应用内购买项目已在iTunes Connect中配置

首先,确保所有应用内购买的商品(如虚拟货币、解锁功能等)都已在iTunes Connect中正确配置,并且这些商品的状态为“Ready to Submit”。

2. 使用uni-app的支付插件

uni-app官方或社区可能提供了针对iOS应用内购买的插件。以下是一个假设的插件使用示例(注意,实际使用时需要根据具体插件的文档进行调整):

// 引入支付插件
const iap = uni.requireNativePlugin('iap');

// 请求产品列表
iap.getProducts({
    products: ['product_id_1', 'product_id_2'], // 替换为iTunes Connect中的Product ID
    success: function (res) {
        console.log('Products:', res.products);
        // 展示产品给用户选择购买
    },
    fail: function (err) {
        console.error('Failed to get products:', err);
    }
});

// 用户选择购买后调用
function purchaseProduct(productId) {
    iap.buy({
        product: productId,
        success: function (res) {
            console.log('Purchase successful:', res);
            // 处理购买成功后的逻辑,如解锁功能
        },
        fail: function (err) {
            console.error('Purchase failed:', err);
        }
    });
}

3. 在应用中明确告知用户应用内购买的存在

确保在应用中适当地通知用户有关应用内购买的信息,避免误导用户认为所有功能都是免费的。

4. 遵循App Store审核指南

确保您的应用完全遵循App Store审核指南,特别是在处理应用内购买时,不要试图绕过IAP系统,否则可能导致应用被下架。

5. 提交审核前测试

在提交应用审核前,使用TestFlight或沙盒环境彻底测试应用内购买功能,确保流程顺畅无误。

结语

以上步骤和代码示例应能帮助您解决因应用内购买问题导致的iOS审核驳回。务必确保所有购买流程都通过Apple的IAP系统完成,并且所有商品都已在iTunes Connect中正确配置。如果问题依旧存在,建议查阅最新的App Store审核指南或联系Apple支持获取更具体的帮助。

回到顶部