Question

Ionic project issues wit RevenueCat

  • 24 February 2022
  • 2 replies
  • 153 views

Badge +1

We added two subscriptions to Revenue dashboard, and that didn’t fetch the subscriptions on mobile side correctly.

It seems have problem between Revenue and ionic project so what’s the best way to troubleshoot this problem?


2 replies

Userlevel 3
Badge +5

Hey @Marcus Finley!

Few questions for you to start off!

  1. Have you had any other other subscriptions or products that have showed up with RevenueCat before? Or are these the first two you are trying?
  2. Which platform (Apple or Google) did you add the products for and are you trying to test on a simulator/emulator or on a physical device?

But either way, the first thing I would do is to turn on debug logging through the RevenueCat SDK (if you haven’t already). Debug logs should print out in the Xcode console (if iOS) or logcat (if Android). It should let you know if there are any API Key issues, IAP fetch from either Apple or Google, and if there are some that aren’t properly matched up between Apple/Google and what is in RevenueCat.

Looking forward to helping you solve these issues 💪 

Badge +1

Hello, @joshdholtz This is Bai Feng that develop this project for Marcus.
I have added two non-consumable products an appstore developer console.

and I added these two products to revenue dashboard.

and then ionic project(tried ios version first), I got the following error.

I would be grateful if you help me.

Thanks in advance

2022-03-15 21:40:46.950775+0800 App[29582:3292166] [Purchases] - DEBUG: ℹ️ No cached Offerings, fetching from network 2022-03-15 21:40:46.952376+0800 App[29582:3292776] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET /subscribers/$RCAnonymousID0X0P+09dedfa5ec19740118d073bfa4e160cb4/offerings 2022-03-15 21:40:46.952458+0800 App[29582:3292776] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:9dedfa5ec19740118d073bfa4e160cb4/offerings ⚡️  To Native ->  FirebaseAnalytics setScreenName 12649495 ⚡️  TO JS undefined 2022-03-15 21:40:46.958212+0800 App[29582:3292392] 8.13.0 - [Firebase/Analytics][I-ACS013000] Screen parameter value must be of type NSString: (nil) 2022-03-15 21:40:46.958337+0800 App[29582:3292392] 8.13.0 - [Firebase/Analytics][I-ACS031028] Received invalid class for screen: (nil) 2022-03-15 21:40:47.317180+0800 App[29582:3292776] [Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/$RCAnonymousID:9dedfa5ec19740118d073bfa4e160cb4/offerings 304 2022-03-15 21:40:47.318264+0800 App[29582:3292776] [Purchases] - DEBUG: ℹ️ Requesting products from the store with identifiers: {(     "com.theklosetkb.www.premium.yearly",     "com.theklosetkb.www.premium.monthly" )} 2022-03-15 21:40:47.319838+0800 App[29582:3292776] [Purchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/$RCAnonymousID0X0P+09dedfa5ec19740118d073bfa4e160cb4/offerings, 0 requests left in the queue 2022-03-15 21:40:47.407479+0800 App[29582:3292776] [Purchases] - DEBUG: ℹ️ Products request finished. 2022-03-15 21:40:47.407689+0800 App[29582:3292776] [Purchases] - DEBUG: � Retrieved SKProducts: 2022-03-15 21:40:47.407841+0800 App[29582:3292776] [Purchases] - WARN: �‼️ Invalid Product Identifiers - (     "com.theklosetkb.www.premium.yearly",     "com.theklosetkb.www.premium.monthly" ) 2022-03-15 21:40:47.407955+0800 App[29582:3292776] [Purchases] - DEBUG: ℹ️ 1 completion handlers waiting on products 2022-03-15 21:40:47.408105+0800 App[29582:3292166] [Purchases] - ERROR: �‼️ Error fetching offerings - Error Domain=RCPurchasesErrorDomain Code=23 "None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used). This could be due to a timeout, or a problem in your configuration. More information: https://rev.cat/why-are-offerings-empty" UserInfo={NSLocalizedDescription=None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used). This could be due to a timeout, or a problem in your configuration. More information: https://rev.cat/why-are-offerings-empty, readable_error_code=CONFIGURATION_ERROR} ⚡️  [error] - Error getOfferings: {"code":23,"message":"None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used).\nThis could be due to a timeout, or a problem in your configuration.\nMore information: https://rev.cat/why-are-offerings-empty","underlyingErrorMessage":"","readable_error_code":"CONFIGURATION_ERROR","readableErrorCode":"CONFIGURATION_ERROR"}

 

 


 

 

Reply