I dont succeed in implementing InAppPurchase in my iOS app.
I have an iOS app com.mydomain.myapp in App Store Connect - not submitted yet.
In Features I have an InAppPurchase defined com.mydomain.myapp.myiap
Can someone confirm that I dont have to submit the iOS app first, without IAP feature ?
AFAIK the InAppPurchase must be submitted with the 1st app version, right ?
Im using Xojo2019r3.1, the latest iOSKit version.
Build settings for iOS have a Team, Build App for iOS=True and In App Purchase=True
Ive downloaded many sample InAppPurchase application, none is actually working.
This is how the helper is initialised:
// iapHelper is a StoreKit.InAppPurchaseHelper property in a module iapHelper.productIDArray = kProdIDs.Split(",") iapHelper.ClearInstance = True iapHelper = iapHelper.GetInstance iapHelper.Setup Try iapHelper.RequestProductsWithCompletionHandler(AddressOf LoadProduct) ...
Im not getting any errors, its just that the LoadProduct always returns 0 products, but success = True.
Public Sub LoadProduct(success as Boolean, products as Foundation.NSArray)
Dim prod As SKProduct
For i as Integer = 0 to products.Count-1
prod = new SKProduct(products.Value(i))
I know I cant test the « buy » function in the simulator, but I should get the products.
Ive been testing on a real device but its the same (logs show LoadProduct returns 0 products).
Does anyone have any idea ?
Many thanks !