Describe the bug
We are using the current property from offerings to get the required purchase offer from the Product team.
This is a great feature given by revenuecat because you don't need to know the identifier associated with the product.
But when you land to tests with storekit tests, if the configuration doesn't match with the configuration (offerings and packages) in revenuecat, the current offer property is not filled.
- Environment
- Platform: iOS
- SDK version: 4.15.x
- StoreKit 2 (disabled with
useStoreKit2IfEnabled(false)) (Y/N): N
- OS version: 16.x
- Xcode version: 14.1.0
- How widespread is the issue. Percentage of devices affected: No users, because it's only on UI tests.
- Debug logs that reproduce the issue
- Steps to reproduce, with a description of expected vs. actual behavior (described above)
- Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Additional context
Maybe there's any way to fill the current offer for tests.
Purchases.shared.getOfferings { offerings, error in
...
print(offerings?.current) // Nil
...
}
Describe the bug
We are using the current property from offerings to get the required purchase offer from the Product team.
This is a great feature given by revenuecat because you don't need to know the identifier associated with the product.
But when you land to tests with storekit tests, if the configuration doesn't match with the configuration (offerings and packages) in revenuecat, the current offer property is not filled.
useStoreKit2IfEnabled(false)) (Y/N): NAdditional context
Maybe there's any way to fill the current offer for tests.