Skip to main content

I am trying to get rid of 9 warnings from debug logs but I don’t know why I am getting them nor how/where to fix it.

I have 9, one month - auto-renewing subscriptions configured in AppStore.

The 9 warnings occur right after SKProductsRequest, but don’t seem to causing any real problems??

It seems that it doesn’t know that my subscriptions are all 1 month subscription length? But when sandbox testing it shows that they renew and my configured products in the AppStore are definitely setup for 1 month.

This is how I have my Offerings setup with the identifier “subscriptions” as seen in the 9 warnings…

 

 

Any idea why I am getting these warnings??

 

“WARN: ⚠️ Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.”

 

2022-06-14 08:49:20.589599-0400 App -Purchases] - DEBUG: 😻 SKProductsRequest request received response

2022-06-14 08:49:20.589598-0400 App -Purchases] - DEBUG: 😻 SKProductsRequest did finish

2022-06-14 08:49:34.082998-0400 App 0Purchases] - WARN: ⚠️ Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.

2022-06-14 08:49:34.083022-0400 App oPurchases] - WARN: ⚠️ Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.

2022-06-14 08:49:34.083038-0400 App Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.

2022-06-14 08:49:34.083054-0400 App >Purchases] - WARN: ⚠️ Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.

3069-0400 App tPurchases] - WARN: ⚠️ Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.

2022-06-14 08:49:34.083084-0400 App rPurchases] - WARN: ⚠️ Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.

2022-06-14 08:49:34.083098-0400 App Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.

2022-06-14 08:49:34.083144-0400 App iPurchases] - WARN: ⚠️ Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.

2022-06-14 08:49:34.083233-0400 App gPurchases] - WARN: ⚠️ Unknown subscription length for package 'subscriptions': PackageType.custom. Ignoring.

Hi,

I’ve the same issue, only on iOS


This appears to be a bug in Offering.swift. It happens whenever you define subscriptions using “custom” type.  I just filed a bug report.


This is what customer support had to say:

I was informed that Offering.annual can only return one Package. Because they’re custom, the log is saying that it won’t be set as part of Offering.annual, but they can still be accessed with the identifier. This could have a clearer message and I see this possibly being revisited in the future. Sorry for the inconvenience.

 


Reply