Monday, July 4, 2022
HomeiOS Developmentandroid - Flutter/Revenuecat: Verify if consumer has already purchased one thing

android – Flutter/Revenuecat: Verify if consumer has already purchased one thing


i’m at present constructing an app in Flutter utilizing RevenueCat for the in-app-purchases.

I now wish to know for every consumer, if he has already made an in-app-purchase, since I’ve trial subscriptions activated. I would like this data, as a result of I wish to modify the UI in case a consumer registers with a brand new account that I have never seen in RevenueCat to date. On this case, he will not be capable to use the trial subscription once more, since Google/Apple forestall this.

I’m utilizing a customized ID for each consumer in my app and I take advantage of this ID for RevenueCat aswell, one might simply create a brand new account and get a unique consumer id. On this case, this seems like a “new” consumer to RevenueCat which has no subscriptions. I believe the answer must examine the GooglePlay-Account for an already bought subscription

Thus far I’ve not discovered a technique to discover out, if a consumer has already made an in-app-purchase. Any concepts on the right way to obtain this?

I’ve tried to do that with https://pub.dev/packages/in_app_purchase, however no luck to date. All of the guides appear to be outdated.

Thanks.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments