I'm building a flutter app that will allow users to subscribe. I'm using this plugin: in_app_purchase 0.5.2
So, my question is: I have to log my users in, and I do this using firebase Auth. But, how can I check which user is logged to deliver them the right purchase? I mean, using the firebase Auth, where or must I check if the current user has purchased something?
You can use a database like firestore to store all the purchase information. Ex:
Users/Auth-id
then retrieve it whenever needed. you can also get the previous purchases with the API
Ex: