Skip to main content
Question

Why is PackageType CUSTOM or UNKNOWN

  • Oct 16, 2024 3:35 PM UTC
  • 4 replies
  • 382 views

Forum|alt.badge.img+4

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
  • Oct 18, 2024 3:52 PM UTC

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+4
  • Author
  • New Member
  • Oct 22, 2024 3:55 PM UTC

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+4
  • Author
  • New Member
  • Oct 24, 2024 7:58 AM UTC

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
  • Oct 30, 2024 1:41 PM UTC

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,