iOS IAP无法在Unity上工作,“服务不可用”

问题描述 投票:0回答:1

我正在尝试在Unity 3D中测试我的游戏IAP,但它不起作用,它在Android上运行得很好但是当我在iOS上测试它时说:服务不可用,请检查您的互联网连接。这是日志:

AdMob client has been initialized.
EasyMobile.AdClientImpl:Init()
EasyMobile.Advertising:SetupAdClient(AdNetwork)
EasyMobile.Advertising:get_AdMobClient()
EasyMobile.Advertising:GetWorkableAdClient(AdNetwork)
EasyMobile.Advertising:get_DefaultBannerAdClient()
EasyMobile.Advertising:ShowBannerAd(BannerAdPosition)

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

2019-02-20 14:39:02.410174+0100 tapsky[6450:2398639] <Google> To get test ads on this device, set: request.testDevices = @[ @"3de524b688608295a3dbf784dd31f9aa" ];
Creating new default banner...
EasyMobile.AdMobClientImpl:InternalShowBannerAd(AdPlacement, BannerAdPosition, BannerAdSize)
EasyMobile.AdClientImpl:ShowBannerAd(AdPlacement, BannerAdPosition, BannerAdSize)
EasyMobile.Advertising:ShowBannerAd(IAdClient, AdPlacement, BannerAdPosition, BannerAdSize)

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

UnityAds client has been initialized.
EasyMobile.AdClientImpl:Init()
EasyMobile.Advertising:SetupAdClient(AdNetwork)
EasyMobile.Advertising:get_UnityAdsClient()
EasyMobile.Advertising:GetWorkableAdClient(AdNetwork)
EasyMobile.Advertising:GetAvailableNetworks()
EasyMobile.<CRAutoLoadAllAds>c__Iterator1:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Please initialize the UnityAds client first.
EasyMobile.AdClientImpl:CheckInitialize(Boolean)
EasyMobile.AdClientImpl:LoadInterstitialAd(AdPlacement)
EasyMobile.Advertising:LoadAllInterstitialAds(List`1)
EasyMobile.<CRAutoLoadAllAds>c__Iterator1:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)


(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

UnityIAP Version: 1.20.1
UnityEngine.Purchasing.StandardPurchasingModule:Instance(AppStore)
EasyMobile.InAppPurchasing:InitializePurchasing()



(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unavailable product com.yougamestudios.tapsky.10000c -com.yougamestudios.tapsky.10000c
UnityEngine.Purchasing.PurchasingManager:CheckForInitialization()
UnityEngine.Purchasing.PurchasingManager:OnProductsRetrieved(List`1)
UnityEngine.Purchasing.AppleStoreImpl:OnProductsRetrieved(String)
UnityEngine.Purchasing.Extension.UnityUtil:Update()

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unavailable product com.yougamestudios.tapsky.500c -com.yougamestudios.tapsky.500c
UnityEngine.Purchasing.PurchasingManager:CheckForInitialization()
UnityEngine.Purchasing.PurchasingManager:OnProductsRetrieved(List`1)
UnityEngine.Purchasing.AppleStoreImpl:OnProductsRetrieved(String)
UnityEngine.Purchasing.Extension.UnityUtil:Update()

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

In-App Purchasing OnInitializeFailed. InitializationFailureReason:NoProductsAvailable

我将产品添加到App Store但仍在审核中,这可能是问题吗?

ios unity3d in-app-purchase
1个回答
0
投票

日志的最后一行说:

InitializationFailureReason:NoProductsAvailable

所以,是的,我认为你猜对了:虽然产品正在审核中你不会在应用程序中得到它们。

© www.soinside.com 2019 - 2024. All rights reserved.