Skip to main content
Question

Why is PackageType CUSTOM or UNKNOWN

  • October 16, 2024
  • 4 replies
  • 36 views

Forum|alt.badge.img

Hi all!

We’re running an A/B-test with a monthly subscription and two pricings both pricings and have the same setup in the AppStore and RevCat but the second package has PACKAGE_TYPE  CUSTOM or UNKNOWN whereas the first has MONTHLY as expected. What could be wrong with the setup?

currentOffering.availablePackages.map((pkg) => {
let priceTag = pkg.product.priceString;
switch(pkg.packageType) {
	case Purchases.PACKAGE_TYPE.LIFETIME:
	  priceTag += ' einmalig'; break;
	case Purchases.PACKAGE_TYPE.ANNUAL:
	  priceTag += ' pro Jahr'; break;
	case Purchases.PACKAGE_TYPE.SIX_MONTH:
	  priceTag += ' alle 6 Monate'; break;
	case Purchases.PACKAGE_TYPE.THREE_MONTH:
	  priceTag += ' alle 3 Monate'; break;
	case Purchases.PACKAGE_TYPE.TWO_MONTH:
	  priceTag += ' alle 2 Monate'; break;
	case Purchases.PACKAGE_TYPE.MONTHLY:
	  priceTag += ' pro Monat'; break;
	case Purchases.PACKAGE_TYPE.WEEKLY:
	  priceTag += ' pro Woche'; break;
	default: // UNKOWN und CUSTOM
	  priceTag += ' pro Monat*'; break;
}

 

This post has been closed for comments

4 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 383 replies
  • October 18, 2024

When you setup a Package in an Offering, you can either give it a standard identifier (monthly, annual, etc.) or a custom identifier. It looks like you used a custom identifier for that package, and you can change it to a standard identifier (i.e., Monthly) in the dashboard to fix this.

 

 


Forum|alt.badge.img
  • Author
  • New Member
  • 2 replies
  • October 22, 2024

Thank you for the answer but actually the setup was correct from our side. The problem was only temporary and there also was an outage for AppStore services on Apples status pages. 


Forum|alt.badge.img
  • Author
  • New Member
  • 2 replies
  • October 24, 2024

It seems that this happens on every change in AppStore Connect. First the new or changed Subscription is of type UNKOWN or CUSTOM and later when the synchronization is complete it changes to the actual value.


joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 313 replies
  • October 30, 2024

Hi @Rouwen,

Thanks for letting us know! This is helpful, do you know what else is inside the package when it’s unknown? If would be great to see which data you have there. My guess is that it happens when available package has empty data?

Best,


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings