Skip to main content

Hello everyone, I have an app on flutterflow that is set to check on a customer subscription status every time it starts, so is updated in the app. This is causing my customer to keep his status until he opens the app again, even when he has cancelled the subscription before. Right now I thought that integrating my Firebase DB to Revenuecat could figured this out by updating instantly my db, but I noticed there's no “boolean” attribute on firebase when a customer is made. I was expecting something like “subscribed=true false” but there's only dates (on string) and useless data for me. 

Any idea how can I check a customer subscription status with firebase information instead of checking as an API in app?

thx 

Hi, I’m not sure what FlutterFlow provides for checking customer subscription status, but what you can do is call invalidateCustomerInfoCache() and then call getCustomerInfo() to make sure the most recent data is being fetched. I'd recommend using the SDK directly, just in case somehow events fail to be delivered to Firebase, as the SDK will always be able to be up to date with the latest status rather than relying on another integration. Please try invalidating the cache to see if this will solve the problem and let me know if it works.