Skip to main content
Question

RevenueCat, webhooks, firebase, SwiftUI, where do I start?

  • September 28, 2025
  • 1 reply
  • 35 views

Forum|alt.badge.img

I’ve been staring at the Firebase integration docs page for couple of days and I cannot make any sense of it. To put it simply, I want my SwiftUI app on user’s device to be informed when their subscription changes (renewes, is cancelled etc. etc.). I use the anonymous userId provided by RevenueCat, my users are not authenticated, they don’t login with any method. If at all possible, I’d prefer to not store any customer data. All I want is a simple “Hey, your subscription changed!” notification so I can refresh entitlements and check what subscription level user has. 

Right at the beggining of https://www.revenuecat.com/docs/integrations/third-party-integrations/firebase-integration it says that FirebaseAuth and FirebaseStore are optional and then 2 senstences later that “The Firebase Extension portion requires this step to be completed.’ with a code snippet that clearly uses FirebaseAuth. So is it, or is it not required for me to use FirebaseStore and FirebaseAuth? Is there any documentation at all for integrating with Firebase Messaging? Any examples I can check? 

This post has been closed for comments

1 reply

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • October 1, 2025

Hi ​@mikfromb7! The Google Analytics portion of the firebase integration doesn’t require authentication, while the Firestore portion does. This latter option is the one you need for your purposes.

However, it sounds like you don’t want to use firebase auth or firestore. Are you using any firebase services? You mentioned firebase messaging - I assume you want to notify your users of subscription changes via push notification? 

If this is the case, you’ll need to save firebase cloud messaging tokens somewhere in order to trigger push notifications. Usually, this is persisted in firestore. And if you’re going this route, you’ll want to save the tokens within a user document, which means you need to either use a custom firebase auth user ID (which you will then give to RevenueCat in lieu of using RevenueCat’s anonymous IDs), or set the firestore ID to the RevenueCat anonymous ID.

But stepping back - wouldn’t the RevenueCat SDK be enough here? When the user opens the app, you’ll check their entitlements and know their status, and you can recheck liberally (responses are cached for 5 minutes when the app is active). It might be simpler to forego notifications and use the RevenueCat SDK to check entitlements. I’d also set up the CustomerInfo listener for real-time entitlement notifications for purchases made on-device.

Happy to help further with this, so please don’t hesitate to reply. Thanks!