Environment
• No issues found!
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
RevenueCat/purchases-ios#2028 (comment)
this is for somebody having a similar issue on the purchases-ios SDK, but I already activated network access on Xcode for the app.
On pub.dev, it's showing that the SDK supports Macos, and on the GitHub page for purchases-flutter, it also shows that Macos is supported. However, around the internet and in some discussions, people are saying that it's not supported, so this really confused us, and we want to confirm whether MacOs is supported or not. This can determine if the mistake is from our side or from the Sdk.
Describe the bug
The SDK can't bring the offering from revenuecat backend on Macos
2023-07-19 17:57:25.499 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Configuring SDK using RevenueCat's UserDefaults suite.
2023-07-19 17:57:25.519 app[85525:11151895] [Purchases] - DEBUG: 👤 Identifying App User ID
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Debug logging enabled
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ SDK Version - 4.21.0
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Bundle ID - com.app
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ System Version - Version 12.5 (Build 21G72)
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Not using a simulator.
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: 👤 No initial App User ID
2023-07-19 17:57:25.557 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Delegate set
2023-07-19 17:57:25.558 app[85525:11151992] [Purchases] - DEBUG: ℹ️ Offerings cache is stale, updating from network in foreground
2023-07-19 17:57:25.559 app[85525:11151992] [Purchases] - DEBUG: ℹ️ ProductEntitlementMapping cache is stale, updating from network.
2023-07-19 17:57:25.569 app[85525:11152016] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Started
2023-07-19 17:57:25.571 app[85525:11152016] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-07-19 17:57:25.593 app[85525:11152016] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-07-19 17:57:26.010 app[85525:11151981] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:26.015 app[85525:11151981] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:26.016 app[85525:11151981] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 0.)
Underlying error: The operation couldn’t be completed. (RevenueCat.NetworkError error 2.)
2023-07-19 17:57:26.016 app[85525:11151981] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Finished
2023-07-19 17:57:26.016 app[85525:11151981] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings, 0 requests left in the queue
2023-07-19 17:57:26.016 app[85525:11152016] [Purchases] - DEBUG: ℹ️ GetProductEntitlementMappingOperation: Started
2023-07-19 17:57:26.016 app[85525:11152016] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET product_entitlement_mapping
2023-07-19 17:57:26.016 app[85525:11152016] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/product_entitlement_mapping
2023-07-19 17:57:26.024 app[85525:11152016] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:26.025 app[85525:11152016] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/product_entitlement_mapping: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:26.028 app[85525:11152016] [Purchases] - ERROR: 😿‼️ Failed updating ProductEntitlementMapping from network: The operation couldn’t be completed. (RevenueCat.BackendError error 0.)
2023-07-19 17:57:26.028 app[85525:11152016] [Purchases] - DEBUG: ℹ️ GetProductEntitlementMappingOperation: Finished
2023-07-19 17:57:26.028 app[85525:11152016] [Purchases] - DEBUG: ℹ️ Serial request done: GET product_entitlement_mapping, 0 requests left in the queue
2023-07-19 17:57:27.125 app[85525:11152015] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Started
2023-07-19 17:57:27.125 app[85525:11152015] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a
2023-07-19 17:57:27.125 app[85525:11152015] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - WARN: ⚠️ Attempt to update CustomerInfo from network failed.
The operation couldn’t be completed. (RevenueCat.BackendError error 0.)
Underlying error: The operation couldn’t be completed. (RevenueCat.NetworkError error 2.)
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Finished
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a, 0 requests left in the queue
2023-07-19 17:58:03.560 app[85525:11151895] [Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
2023-07-19 17:58:03.563 app[85525:11151895] [Purchases] - DEBUG: ℹ️ CustomerInfo cache is stale, updating from network in foreground.
2023-07-19 17:58:03.563 app[85525:11151895] [Purchases] - DEBUG: ℹ️ ProductEntitlementMapping cache is stale, updating from network.
2023-07-19 17:58:03.563 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Offerings cache is stale, updating from network in foreground
2023-07-19 17:58:03.564 app[85525:11153024] [Purchases] - DEBUG: ℹ️ GetProductEntitlementMappingOperation: Started
2023-07-19 17:58:03.564 app[85525:11153024] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET product_entitlement_mapping
2023-07-19 17:58:03.564 app[85525:11153024] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/product_entitlement_mapping
2023-07-19 17:58:03.573 app[85525:11153023] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.574 app[85525:11153023] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/product_entitlement_mapping: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.574 app[85525:11153023] [Purchases] - ERROR: 😿‼️ Failed updating ProductEntitlementMapping from network: The operation couldn’t be completed. (RevenueCat.BackendError error 0.)
2023-07-19 17:58:03.574 app[85525:11153023] [Purchases] - DEBUG: ℹ️ GetProductEntitlementMappingOperation: Finished
2023-07-19 17:58:03.574 app[85525:11153023] [Purchases] - DEBUG: ℹ️ Serial request done: GET product_entitlement_mapping, 0 requests left in the queue
2023-07-19 17:58:03.574 app[85525:11153024] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Started
2023-07-19 17:58:03.574 app[85525:11153024] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-07-19 17:58:03.576 app[85525:11153024] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 0.)
Underlying error: The operation couldn’t be completed. (RevenueCat.NetworkError error 2.)
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Finished
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings, 0 requests left in the queue
2023-07-19 17:58:03.602 app[85525:11153023] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Started
2023-07-19 17:58:03.602 app[85525:11153023] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a
2023-07-19 17:58:03.602 app[85525:11153023] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - WARN: ⚠️ Attempt to update CustomerInfo from network failed.
The operation couldn’t be completed. (RevenueCat.BackendError error 0.)
Underlying error: The operation couldn’t be completed. (RevenueCat.NetworkError error 2.)
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Finished
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a, 0 requests left in the queue
We are trying to run our Flutter app on MacOS, and every time we try to run it, we are getting the same errors.
Environment
flutter doctor[✓] Flutter (Channel stable, 3.10.6, on macOS 12.5 21G72 darwin-arm64, locale en-NG)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] Connected device (2 available)
[✓] Network resources
• No issues found!
Version of
purchases-flutterpurchases_flutter: ^5.0.0
Testing device version
Apple Macbook pro M1 Monterey 12.5
How often the issue occurs- every one of your customers is impacted? Only in dev?
every time
Debug logs that reproduce the issue
Steps to reproduce, with a description of expected vs. actual behavior
just starting to run the app from android studio will reproduce the issue for us.
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
RevenueCat/purchases-ios#2028 (comment)
this is for somebody having a similar issue on the purchases-ios SDK, but I already activated network access on Xcode for the app.
On pub.dev, it's showing that the SDK supports Macos, and on the GitHub page for purchases-flutter, it also shows that Macos is supported. However, around the internet and in some discussions, people are saying that it's not supported, so this really confused us, and we want to confirm whether MacOs is supported or not. This can determine if the mistake is from our side or from the Sdk.
Describe the bug
The SDK can't bring the offering from revenuecat backend on Macos
We are trying to run our Flutter app on MacOS, and every time we try to run it, we are getting the same errors.