Designing Offline Subscription Access Policies in FlutterDesigning Offline Subscription Access Policies in Flutter
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
If your Flutter app decides what to show and what your backend will run from the same cached isActive flag, that one flag is doing two jobs that need different sources of truth. RevenueCat's cache suits the first job and not the second. Its documentation says cached CustomerInfo is returned offline forever if the user never goes online, and that an entitlement active when the user went offline stays active for up to three days. An offline launch always gets an answer, and it can be wrong in both directions: a subscriber on a train looks inactive, someone who cancelled in airplane mode still looks paid. Let the cached state decide presentation and local features, and let a server you control authorize every backend operation. Between paid and free, add a third state for the launches where the device could not check. Inactive plus never confirmed is not the same as free, and only your server's answer should write free. https://www.duskolicanin.com/blog/flutter-subscription-offline-access-policy
Post image
Rafee's avatar
The third "unconfirmed" state is the useful bit. Offline users shouldn't be treated the same as free ones.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started