Skip to main content

My iOS SwiftUI app is in Testflight, everything seemed OK, but since this weekend, there is this strange behaviour. When the app is run for the first time, everything works fine. But on second run (and all subsequent runs), offerings are not shown.

If the app is deleted from device and reinstalled, the issue repeats: first launch shows offerings, second launch does not.

______ Console ____________

2022-03-20 21:32:45.986445+0100 AppNamee12345:1234567] Purchases] - DEBUG: 👤 Identifying App User ID

2022-03-20 21:32:45.988665+0100 AppNameN12345:1234567] 6Purchases] - DEBUG: ℹ️ Debug logging enabled

2022-03-20 21:32:45.988708+0100 AppName 12345:1234567] 2Purchases] - DEBUG: ℹ️ SDK Version - 4.2.0-SNAPSHOT

2022-03-20 21:32:45.988732+0100 AppName012345:1234567] 4Purchases] - DEBUG: 👤 No initial App User ID

2022-03-20 21:32:45.991893+0100 AppName912345:1234567] 1Purchases] - DEBUG: ℹ️ Sending latest CustomerInfo to delegate.

2022-03-20 21:32:45.992082+0100 AppName912345:1234567] aPurchases] - DEBUG: ℹ️ Delegate set

2022-03-20 21:32:45.992151+0100 AppName:12345:1234567] APurchases] - DEBUG: ℹ️ No cached Offerings, fetching from network

2022-03-20 21:32:46.361250+0100 AppName112345:1234567] 1Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Started

2022-03-20 21:32:46.361551+0100 AppName212345:1234567] 5Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3A3a76a19a576341c1a6da114133489f00/offerings

2022-03-20 21:32:46.363966+0100 AppName-12345:1234567] 3Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:3a76a19a576341c1a6da114133489f00/offerings

2022-03-20 21:32:46.364121+0100 AppName212345:1234567] :Purchases] - DEBUG: ℹ️ applicationDidBecomeActive

2022-03-20 21:32:47.161337+0100 AppName>12345:1234567] 1Purchases] - DEBUG: ℹ️ API request completed: GET /v1/subscribers/$RCAnonymousID:3a76a19a576341c1a6da114133489f00/offerings304

2022-03-20 21:32:47.163889+0100 AppName412345:1234567] 2Purchases] - ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details.

2022-03-20 21:32:47.165720+0100 AppNamed12345:1234567] 0Purchases] - ERROR: 🍎‼️ Error fetching offerings - There's a problem with your configuration. There are no products registered in the RevenueCat dashboard for your offerings. To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings.

More information: https://rev.cat/why-are-offerings-empty

2022-03-20 21:32:47.165937+0100 AppNameo12345:1234567] /Purchases] - ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details.

2022-03-20 21:32:47.166074+0100 AppNamer12345:1234567] tPurchases] - ERROR: 🍎‼️ Error fetching offerings - There's a problem with your configuration. There are no products registered in the RevenueCat dashboard for your offerings. To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings.

More information: https://rev.cat/why-are-offerings-empty

2022-03-20 21:32:47.166165+0100 AppNamev12345:1234567] fPurchases] - DEBUG: ℹ️ GetOfferingsOperation: Finished

2022-03-20 21:32:47.166403+0100 AppName12345:1234567] ePurchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3A3a76a19a576341c1a6da114133489f00/offerings, 0 requests left in the queue

2022-03-20 21:32:47.166438+0100AppNamef12345:1234567] ePurchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Started

2022-03-20 21:32:47.166553+0100AppName:12345:1234567] oPurchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3A3a76a19a576341c1a6da114133489f00

2022-03-20 21:32:47.168110+0100AppNameA12345:1234567] 7Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:3a76a19a576341c1a6da114133489f00

2022-03-20 21:32:47.408575+0100 AppNames12345:1234567] :Purchases] - DEBUG: ℹ️ API request completed: GET /v1/subscribers/$RCAnonymousID:3a76a19a576341c1a6da114133489f00304

2022-03-20 21:32:47.409627+0100 AppNamer12345:1234567] DPurchases] - ERROR: 😿‼️ Unable to find subscriber object in data:

0:]

2022-03-20 21:32:47.418514+0100 AppName12345:1234567] tPurchases] - ERROR: 😿‼️ There was an unknown backend error.

2022-03-20 21:32:47.420419+0100 AppName[12345:1234567] RPurchases] - WARN: ⚠️ Attempt to update CustomerInfo from network failed.

There was an unknown backend error.

2022-03-20 21:32:47.420574+0100 AppNameo12345:1234567] tPurchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Finished

2022-03-20 21:32:47.420772+0100 AppName312345:1234567] rPurchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3A3a76a19a576341c1a6da114133489f00, 0 requests left in the queue

Thanks for the report! This was indeed a regression caused by a recent refactor that happened after the 4.1.0 release. I just submitted a fix: https://github.com/RevenueCat/purchases-ios/pull/1403

I still experience this with 4.14.1 sometimes. See 

 


Thanks for the report! This was indeed a regression caused by a recent refactor that happened after the 4.1.0 release. I just submitted a fix: https://github.com/RevenueCat/purchases-ios/pull/1403


Ok, I reverted from main branch to 4.1.0 and the issue went away. So it looks like a bug in 4.2.0!


Reply