I call Purchases. Restoring Purchases takes about 7-10 seconds on both Android and iOS. I call it on the Splash screen, but it dramatically annoys the user.
Can you give me an idea of how to get rid of it?
Purchases.restorePurchases too slow
Best answer by joan-cardona
Hi
Can you tell me more on what you are trying to achieve by calling restore purchases on the splash screen?
It is not recommended to call restore purchases programmatically because it can prompt the user with the store authentication sheet, completely blocking your users and putting them away from your app.
You shouldn’t need to trigger restore every time your app opens, RevenueCat already refreshes the subscription status automatically for you - so your users are always up to date in the app based on their subscription.
If you want to force sync, you can use syncPurchases which it doesn’t require the user interaction.
I hope this helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.