Thursday, December 28, 2023
HomeiOS Developmentios - Implementing Subscription in Unity App: Points with Take a look...

ios – Implementing Subscription in Unity App: Points with Take a look at Card in Apple’s Sandbox Surroundings


I am integrating a subscription mannequin into my Unity software and wish to take a look at its performance utilizing a take a look at card in Apple’s sandbox atmosphere.

I am utilizing the UnityPurchasing plugin. On startup, the next code is executed:

var builder = ConfigurationBuilder.Occasion(StandardPurchasingModule.Occasion());
builder.AddProduct("vip", ProductType.Subscription);
UnityPurchasing.Initialize(this, builder);

Nevertheless, I am encountering a difficulty, indicated by this log:

Unavailable product vip-vip
UnityEngine.Buying.PurchasingManager:HasAvailableProductsToPurchase(Boolean)
UnityEngine.Buying.PurchasingManager:CheckForInitialization()
UnityEngine.Buying.PurchasingManager:OnProductsRetrieved(Listing`1)
UnityEngine.Buying.AppleStoreImpl:OnProductsRetrieved(String)
UnityEngine.Buying.Extension.UnityUtil:Replace()

Buying didn't initialize. Motive: NoProductsAvailable.
Samples.Buying.Core.BuyingSubscription.BuyingSubscription:OnInitializeFailed(InitializationFailureReason, String)

My predominant concern is why the product ‘vip’ is being interpreted as ‘vip-vip’, and is that this the basis of the issue?

Here is what I’ve finished up to now:

Created an Apple account with the e-mail ‘admin’.
Notice: I am utilizing two emails – ‘admin’ for the account with administrator rights and ‘inapptester’ for sandbox testing in App Retailer Join. ‘admin’ can’t be added to the sandbox testers.

Arrange an software and an in-app buy (IAP) named ‘vip’, offering solely primary info like worth and areas at this stage. I did not add screenshots or different particulars but.

Added the ‘inapptester’ electronic mail to sandbox customers in App Retailer Join.

Added the ‘admin’ electronic mail as an inside tester, despatched an invite to TestFlight, and accepted it.

Downloaded the construct from TestFlight on the ‘admin’ system, launched it, and tried the IAPs, however they did not work.

Went to Settings -> App Retailer on the system, the place I discovered a ‘Sandbox’ discipline with the ‘admin’ electronic mail.

Modified the Sandbox electronic mail to ‘inappTester’.

Entered the app once more with this alteration. The IAPs not working.

Deleted the app and immediately uploaded a brand new construct by way of Xcode – The IAPs not working.

I have not registered something moreover and have not despatched it for approval (might this be the problem?). My aim is only for inside testing. What am I doing flawed?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments