This is the scenario.
I develop with Flutter.
I have a subscription that is automatically renewed monthly or annually.
My app can safely work with all the features even off-line.
Of course, to subscribe, you need to be online.
But I wonder: if after the first monthly subscription, the user always uses my app off-line (he must of course remember to put the device off-line before using it), how can I check if the subscription has been deleted?
Can there be a way?
Thanks for any suggestion.
Solved
Check the subscription when the Device is off-line?
Best answer by ryan
You can call the .getPurchaserInfo()
method the same way you would as if the device is offline.
The latest PurchaserInfo object is cached on the device, and will always be returned first. The cache will get updated when a network connection resumes.
What this means for your customers is that the subscription status will remain the same as what it was when the device went offline.
how can I check if the subscription has been deleted?
You’ll need a network connection to detect any changes in the subscription that may have occurred while offline. If this is a hard requirement, then you should not allow offline usage of your app.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.