Our game has a subscription that has worked fine in production and TestFlight. We are looking at enabling billing grace period, and Apple recommends testing it out first in development. I updated to Unity IAP 4.11.0, generated the AppleStoreKitTestTangle file, and made a build that uses that for testing. It works fine for non-consumable products, but when I call SubscriptionManager.getSubscriptionInfo() with the subscription product, I get an InvalidProductTypeException. I have checked and confirmed the product’s type is Subscription.
InvalidProductTypeException: Exception of type 'UnityEngine.Purchasing.InvalidProductTypeException' was thrown.
at UnityEngine.Purchasing.SubscriptionInfo..ctor (UnityEngine.Purchasing.Security.AppleInAppPurchaseReceipt r, System.String intro_json) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Purchasing.SubscriptionManager.getAppleAppStoreSubInfo (System.String payload, System.String productId) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Purchasing.SubscriptionManager.getSubscriptionInfo () [0x00000] in <00000000000000000000000000000000>:0
This is on Unity 2022.3.18f1, Unity IAP 4.11.0, on an iPad with iOS 17.4.1. The problem does not occur in TestFlight or production using the regular AppleTangle.