Skip to main content
Question

Subscription updates not reflected in Firestore

  • 20 August 2022
  • 4 replies
  • 168 views

Hi, I am in the process of finishing my integration with RevenueCat and having an issue where the subscription events are not updated in the user collection.

Stack

  • Vue.js + CapacitorJS + Firebase

What’s happening

  • Subscriptions are successful
  • User collection is updated with RevenueCat data (I’m using the same collection as my normal user collection)
  • I cancel the subscription in Google Play successfully
  • I receive the event in Firestore
  • User collection is not updated

User collection’s entitlements and subscriptions sections after cancellation

 

 

 

The only steps I’ve not completed is connecting up to Google Analytics but otherwise I think I’m setup correctly.

Is this not working or is my expectations of how this integration works incorrect?

I was expecting that when a user unsubscribes that the unsubscribe_detected_at would be updated and when the sub expires that the subscriptions and entitlements would update accordingly.

Regards,

Chris

On my side i well see the firestore collection updated with a bit of latency (1s to 1min) but the problem is when firestore collection updated the claims is not. So if you listen the collection and then refresh to update yours claims → you will see the old claims...


No update ?


Are there any updates on this?


I am facing this exact some issue - also not seeing custom claims updated on the users despite having the functionality enabled in the Firebase extension. I also do not have analytics configured however. Did you ever get to the bottom of this? 


Reply