The use case is simple. Let’s take my React Native iOS app as an example:
- A user who has already purchased a “Premium” subscription in my app goes to their iPhone Settings and unsubscribes
- Now they open my app and goes to the “Subscription” page to check the status
- My subscription page says that their sub is active AND will renew at date X, even if I run the getPurchaseInfo() again
- My user gets confused/angry and contacts my support
How can I avoid the above? I’m new to RC and have just been playing around in the Sandbox environment. RC docs says certain attributes, like the “willRenew” could take multiple hours to sync. I have activated Platform Server Notifications but at least in Sandbox it seems like the info I get back from getPurchaseInfo()
How can I avoid these delays and caches and whatnot, and always be sure that everything is updating instantly and the data is accurate and “fresh”?
I asked the RC support about this, and they just copy/pasted the first two paragraphs of the “Webhooks” section in their reply to me. Will webhooks trigger at a faster rate than the sync between App Stores and RC? Or I’m not just understanding how webhooks would solve the use case above?
How do you manage to always show accurate statuses in your app?
Best answer by tinaView original