Describe the bug
On IOS devices calling Purchases.getOfferings() is extremely slow. For exemple it takes up to 10 seconds on the Iphone 14 I have under my eyes. At least when called for the first time.
-
Environment
- Platform: IOS
- SDK version: 7.1.0
- OS version: 16.4
- Xcode/Android Studio version: 14.3
- React Native version: 0.72.6
- SDK installation (CocoaPods + version or manual): CocoaPods ~> 1.13
-
Debug logs that reproduce the issue
Not relevant
-
Steps to reproduce, with a description of expected vs. actual behavior
const startTs = Date.now();
const offerings = await Purchases.getOfferings();
const endTs = Date.now();
console.log(`⏰ Revenue Cat: getOfferings took ${endTs - startTs}ms`);
// output: ⏰ Revenue Cat: getOfferings took 9454ms
-
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
I must say that I have about fifteen different offerings. And I am calling this method right after SDK setup in order to display a paywall on app opening.
Not tested on Android yet.
Describe the bug
On IOS devices calling
Purchases.getOfferings()is extremely slow. For exemple it takes up to 10 seconds on the Iphone 14 I have under my eyes. At least when called for the first time.Environment
Debug logs that reproduce the issue
Not relevant
Steps to reproduce, with a description of expected vs. actual behavior
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
I must say that I have about fifteen different offerings. And I am calling this method right after SDK setup in order to display a paywall on app opening.
Not tested on Android yet.