Question

products not fetched on iOS

  • 21 September 2022
  • 1 reply
  • 329 views

Badge +4

Hi,

We are trying to implement in-app subscription on android and iOS.

 

On Android it work but on iOS app return the error

PlatformException(23, There's a problem with your configuration. 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)

 

We checked the Apple Store Connect console and it seems all ok:

  • RevenueCat Apple config is filled out with all fields
  • We use In-app certificate and Apple Store Connect Key as credential
  • the subscriptions plan is in “Ready to submit” and “In review” status
  • We also have tried with StoreKit cert file for testing on simulator

 

what is missing?

 

Thanks


1 reply

Badge +4

This is the log on iOS simulator 

2022-09-22 09:59:29.947636+0200 BeC[6397:43573] [Purchases] - DEBUG: 👤 Identifying App User ID
2022-09-22 09:59:29.966469+0200 BeC[6397:43573] [Purchases] - DEBUG: ℹ️ Debug logging enabled
2022-09-22 09:59:29.967229+0200 BeC[6397:43573] [Purchases] - INFO: ℹ️ StoreKit 2 support enabled
2022-09-22 09:59:29.967929+0200 BeC[6397:43573] [Purchases] - DEBUG: ℹ️ SDK Version - 4.11.0
2022-09-22 09:59:29.968411+0200 BeC[6397:43573] [Purchases] - DEBUG: 👤 Initial App User ID set
2022-09-22 09:59:29.975459+0200 BeC[6397:43573] [Purchases] - DEBUG: ℹ️ Delegate set
2022-09-22 09:59:30.013767+0200 BeC[6397:44221] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Started
2022-09-22 09:59:30.014256+0200 BeC[6397:44221] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/Aa123456789
2022-09-22 09:59:30.023849+0200 BeC[6397:43573] [Purchases] - DEBUG: ℹ️ No cached Offerings, fetching from network
2022-09-22 09:59:30.042955+0200 BeC[6397:44221] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/Aa123456789
2022-09-22 09:59:30.478415+0200 BeC[6397:44228] [boringssl] boringssl_metrics_log_metric_block_invoke(151) Failed to log metrics
2022-09-22 09:59:30.598822+0200 BeC[6397:44228] [Purchases] - DEBUG: ℹ️ API request completed: GET /v1/subscribers/Aa123456789 304
2022-09-22 09:59:30.605393+0200 BeC[6397:44228] [Purchases] - DEBUG: ℹ️ Sending latest CustomerInfo to delegate.
2022-09-22 09:59:30.605551+0200 BeC[6397:44228] [Purchases] - DEBUG: 😻 CustomerInfo updated from network.
2022-09-22 09:59:30.605673+0200 BeC[6397:44228] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Finished
2022-09-22 09:59:30.605850+0200 BeC[6397:44228] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/Aa123456789, 0 requests left in the queue
2022-09-22 09:59:30.605934+0200 BeC[6397:44621] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Started
2022-09-22 09:59:30.606114+0200 BeC[6397:44621] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/Aa123456789/offerings
2022-09-22 09:59:30.607675+0200 BeC[6397:44621] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/Aa123456789/offerings
2022-09-22 09:59:30.726862+0200 BeC[6397:44228] [Purchases] - DEBUG: ℹ️ API request completed: GET /v1/subscribers/Aa123456789/offerings 304
2022-09-22 09:59:30.728539+0200 BeC[6397:44228] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Finished
2022-09-22 09:59:30.728716+0200 BeC[6397:44228] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/Aa123456789/offerings, 0 requests left in the queue
2022-09-22 09:59:30.728760+0200 BeC[6397:44621] [Purchases] - DEBUG: ℹ️ No existing products cached, starting store products request for: ["bec_one_apple", "bec_duo_apple", "bec_family_apple"]
2022-09-22 09:59:30.729748+0200 BeC[6397:44621] [Purchases] - DEBUG: ℹ️ No existing products cached, starting store products request for: ["bec_one_apple", "bec_duo_apple", "bec_family_apple"]
2022-09-22 09:59:31.397617+0200 BeC[6397:44221] [Default] [StoreKit] Failed to get products through appstored in simulator, will try using appstoreagent on host mac:
Error Domain=ASDErrorDomain Code=507 "Error decoding response" UserInfo={NSLocalizedDescription=Error decoding response, NSLocalizedFailureReason=Could not decode media products response}
2022-09-22 09:59:31.398798+0200 BeC[6397:44221] [Default] Failed in XPC product request ["bec_one_apple", "bec_duo_apple", "bec_family_apple"]: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.storekitservice.sim2host was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.storekitservice.sim2host was invalidated: failed at lookup with error 3 - No such process.}
2022-09-22 09:59:31.401682+0200 BeC[6397:44678] [Purchases] - DEBUG: ℹ️ Store products request failed! Error: The operation couldn’t be completed. (RevenueCat.ProductsFetcherSK2.Error error 0.)
2022-09-22 09:59:31.402733+0200 BeC[6397:44678] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 1.)
Underlying error: The operation couldn’t be completed. (RevenueCat.ProductsFetcherSK2.Error error 0.)
2022-09-22 09:59:32.025711+0200 BeC[6397:44221] [Default] [StoreKit] Failed to get products through appstored in simulator, will try using appstoreagent on host mac:
Error Domain=ASDErrorDomain Code=507 "Error decoding response" UserInfo={NSLocalizedDescription=Error decoding response, NSLocalizedFailureReason=Could not decode media products response}
2022-09-22 09:59:32.026393+0200 BeC[6397:44221] [Default] Failed in XPC product request ["bec_one_apple", "bec_duo_apple", "bec_family_apple"]: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.storekitservice.sim2host was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.storekitservice.sim2host was invalidated: failed at lookup with error 3 - No such process.}
2022-09-22 09:59:32.026834+0200 BeC[6397:44221] [Purchases] - DEBUG: ℹ️ Store products request failed! Error: The operation couldn’t be completed. (RevenueCat.ProductsFetcherSK2.Error error 0.)
2022-09-22 09:59:32.027071+0200 BeC[6397:44221] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 1.)
Underlying error: The operation couldn’t be completed. (RevenueCat.ProductsFetcherSK2.Error error 0.)
2022-09-22 09:59:32.027534+0200 BeC[6397:43573] [Purchases] - ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details. There's a problem with your configuration. 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).
More information: https://rev.cat/why-are-offerings-empty

 

Reply