Get help with webhooks, third-party integrations, and attribution providers.
Recently active
Hi all, looking to use the Revenue Cat API to dynamically set the price of a subscription within my app - looking at the API docs I’m struggling to find a way to make a GET request with either a UserId or SubscriptionId to get the price of a subscription. Is there a way to do this currently, and if so - how?
I’m moving RevenueCat 4.x to 5.x and I’ve created my account and integrated my existing app to it.Even though on the dashboard, the `In-App Purchase Configuration` section prompts that I have valid permission, I still can’t purchase when testing it on sandbox environment and receive this error “Apple In-App Purchase Key is invalid or not present”Could someone tell me what’s wrong here?
Hi everyone,I'm currently using RevenueCat with React Native Expo and I have a question about how the email attribute is handled.In my app, I'm initializing RevenueCat as follows:await Purchases.configure({ apiKey: APIKeys.apple,});Purchases.setEmail(userData.email);Purchases.setDisplayName(userData.name);I want to know if the email attribute will be sent to my webhook when a purchase event or subscription change occurs. I’m specifically setting the email after configuring RevenueCat, but I'm unsure if this will be passed to the webhook.I didn’t see an email attribute in the body of a POST request for webhook events when I read the documentation here.Has anyone else implemented something similar or can confirm how this works?Thanks in advance!
Hi,I have subscription started at 2024-10-08 06:52:27+00 and will renewable at 2024-11-08 06:26:27+00and currend date is 2024-10-23.I defer the subcription via POST https://api.revenuecat.com/v1/subscribers/$app_user_id/subscriptions/$product_identifier/defer to one day so the body['expiry_time_ms' => 1731133587000,]if we convert this ms we will get “2024-11-09 06:26:27.0 UTC (+00:00)”the api response is HTTP request returned status code 400:{"code":7258,"message":"The desired expiry time for the subscription is not valid."}what is the wrong ?
HelloI'm looking to introduce "prepaid" or "non-renewing subscriptions" for my app. I plan to start by adding this option to our website. To implement this, I’m creating one-time payment products for the following durations: 1 month, 3 months, and 12 months.So far, everything is set up on the website side. However, I’m facing a challenge when it comes to informing RevenueCat that these one-time payment products should have a fixed duration. For instance, I need to configure the 3-month product to grant access for exactly 3 months and the 12-month product for 12 months.Does anyone know if this is possible in RevenueCat? If so, what would be the best approach to set this up?Any insights or guidance would be greatly appreciated!Thanks in advance!
I'm implementing a subscription system using RevenueCat with React Native Expo and Firebase, utilizing the RevenueCat Firebase extension. My current flow is:User signs in anonymously with Firebase (and implicitly with RevenueCat).User encounters a paywall and makes a purchase.User is redirected to a signup menu with the following sign up options email, Google, Apple.When the users signs up we do a account firebase upgrade from anonymous using linkWithCredential.Issues I'm facing:1. If, after upgrading their account, the user chooses to create a new account with an email and password (now it would not get linked instead this is a entirely new account), the revenueCat subscription appears on both the old and new accounts ( i believe this happens after one of these methods are ran await Purchases.restorePurchases(); await Purchases.syncPurchases();I am not sure why though, do these methods call the firebase cloud function? and should I not call them? and if I should not call them then th
Hello, I am currently developing a feature that sends push notifications before the free trial expires and the subscription begins, using webhooks. The logic is as follows:if (event.type === 'INITIAL_PURCHASE' && event.period_type === 'TRIAL') { // Schedule push notification} else if (event.type === 'CANCELLATION' && event.period_type === 'TRIAL') { // Cancel scheduled push notification}Will the above logic work as intended? I am curious if the `period_type` is correctly transmitted as the current subscribed product, regardless of the event type.
Does anyone know what the exact login is in the backend for determining new subscribers in a given month for iOS? We’re migrating from Tableau / App Store API and have about a 10% gap to understand. We have a simple annual subscription with a free 7-day trial and occasional intro price offers which complicate the event type math for doing new subs. So I’m wondering if the exact RC logic for calculating new subs in a period for iOS is available to better understand the differences we’re seeing. For example, it takes the SUM of events “Conversions to Standard Price” and “Reactivations” and “Activations {where duration = 1yr”} something like that?
If a user redeems an offer code (iOS) without the app installed, when does the INITIAL_PURCHASE webhook fire? I’m having an issue where the INITIAL_PURCHASE webhook is firing without the user id being set. I set the user id when the user signs in/up so I’m trying to understand when the webhook is firing. This is only a problem for trials (offer code redemptions).It would be nice if the webhook would re-fired when the user id was updated.
Dear Community:I have purchased the Codelime yearly subscription on my MacBook Pro M2 via my iCloud Account - Apple ID. Since purchasing on this same device I can’t enable iCloud sync because for some reason it still sees my free subscription and not the one I just paid for. On my Mac Studio M1 and my iPhone it automatically recognized my Codelime premium subscription.On this MacBook Pro M2 device if I select restore purchases I am seeing the following message below.Apple Subscription Key is invalid or not present. In order to provide subscription offers, you must\nfirst generate a subscription key.\nPlease see https://docs.revenuecat.com/docs/ios-subscription-offers for more info. Apple Subscription Key is invalid or not present.From what I have read in this community forum, it seems that this is a new bug. If anyone can help me get this resolved, it would be highly appreciated.Looking forward to a response.Thanks
I am launching an app with a subscription offering. I currently have an e-commerce site built using Shopify. I am selling subscriptions on the Shopify site using the Bold Subscriptions Add-On, with Shopify Payments as the gateway.Bold offers webhooks for subscription events. I was thinking that I could pass these webhooks through my backend to the RC API...but...I don’t see RC endpoints for subscription events like cancel, so maybe this is not a viable solution?Is it possible to integrate the subscriptions sold on the Shopify site with RevenueCat? Am I missing a simpler solution here? Thanks!
Hi everyone,I’m in the process of migrating from the Cordova Purchase Plugin to RevenueCat and have a question about how Firebase Analytics handles in-app purchase events with the following setup:Capacitor Plugin: @capacitor-community/firebase-analytics RevenueCat Plugin: @capacitor-community/revenuecatCurrently, with @capacitor-community/firebase-analytics installed, all in-app purchases are automatically logged in Firebase Analytics as in_app_purchase events, even though I haven’t explicitly configured this. I assume this happens because Firebase SDKs natively track purchases on iOS and Android platforms.As I transition to RevenueCat, I’m considering whether or not to implement its Firebase integration. My concern is that this could cause the same in_app_purchase events to be logged twice: once by the native Firebase SDK and potentially again via RevenueCat's integration.My main questions are:Has anyone experienced this setup? Do I correctly assume that enabling the Firebase integrat
I also face this issue, and many others are experiencing it as well.Here is the correct link (which is not showing in the App Store when we log in and try to find in-app purchases). However, if you use this link, it will redirect you to the App Store in-app purchase API page.Please make sure to log in as the owner, not as a developer or admin:https://appstoreconnect.apple.com/access/integrations/api/subs
When integrating Singular using official docs we have faced a few issues: API KeyFrom the official docs it is not clear which API key we suppose to use. Singular has many types of API keys: SDK, Reporting API key, S2S API key, etc.We were under impression that we should use Reporting API key located here: https://app.singular.net/#/react/api. On our integration page on Revenue Cat all events were green and in event logs it was indicated that Singular successfully accepts the events.The problem was that we couldn’t find any rc_events on Singular Events page. We had raised a problem with Singular support and they confirmed that Reporting API key should be used as API key. After a few days they again replied to us saying that this is wrong and SDK API key should be used instead.Would be nice to have more clear explanation on docs page regarding this issue. IDFA for iOSWe don’t ask our users to provide access to IDFA, so we only collect IDFV. In your official integration with Singular if c
Hi, recently in one of our apps the integration between RevenueCat and OneSignal is failing, im aware of the changes in the API as stated here https://www.revenuecat.com/docs/integrations/third-party-integrations/onesignal#11-user-centric-api-versions-of-onesignal-110-and-abovewe have two types of problems first of all some of the request send empty bodies and some others return {"errors":[{"title":"No subscription with alias We have this integration working in two apps with exactly the same implementation, one is working fine and the other is always failing.as of today which type should we use with flutter and why one is failing?Here is a little snippet of the integration: final oneSignalUserId = OneSignal.User.pushSubscription.id; OneSignal.login(revenueCatUserId); OneSignal.User.addAliases(<String, dynamic>{ 'revenuecat_id': revenueCatUserId, }); await _corePurchases.setOneSignalId(oneSignalUserId!)Thanks.
Hi, I thought the only values you see for the period_type field are: TRIAL, NORMAL, PROMOTIONAL. However, see attached. I see a PREPAID value? In the attached picture, the product is a recurring subscription (as opposed to a prepaid/non-recurring product). So the period_type value doesn’t seem to match.Is this a bug in RC? If not, what does this period_type mean? iOS subs continue to use the NORMAL period_type, so am I expected to field different period types, depending on the store? Thanks, Toby
When RevenueCat update firestore collection to indicate that subscription is cancelled claims are not updated.Scenario to proof : - Cancel your subscription and create a listener on the collection containing the subscription data.- Once subscription is updated by RevenueCat at ‘expiresDate’ your app will be notified.- Once notified call FirebaseAuth.instance.currentUser!.getIdTokenResult(true).- As you can see claims are not updatedBecause of that, after subscription i can’t read some collections protected by firestore rules using claims.
In my RevenueCat project, I implemented Stripe, which is connected to RevenueCat.I followed the documentation on how to implement web hooks, copied the “Signing secret” from Stripe to the “Stripe Webhook Secret” field in RevenueCat.But when I submit the secret, I got an error: “Invalid Password”, as shown below: Did I miss something?How can I fix that?Thanks.
Hi.I'm trying to implement subscription purchases and in-app purchases using Google play and RevenueCat payment service.Although we had already succeeded in integrating other apps, we had problems integrating payments for the new app.I don't think the RevenueCat payment service works by accident.I hope everything runs smoothly.Let me tell you why I say this.We followed all the integration methods currently provided by RevenueCat and repeated them not just once, but several times.So, please refrain from telling people to refer to this while sharing reference documents.So, I often waited for more than 24 or 36 hours, and now even after waiting for a week, the payment does not work.Of course, the review and approval was completed in the closed testing track, and there were many times I waited while revising the product description for a quick method.But it still doesn't work.I am now waiting for a quick reply and hope this helps all users here who are having the same problem as me.We look
I’m tinkering around with RevenueCat for an app my company is releasing Q4 this year. We use Firebase as a simple backend.Context:One of our features is the submission of images for server-side processing. The submission of a job is done via a Firebase cloud function, and the abilities of the user to submit these jobs can be different depending on the user’s current subscription/entitlements. As such, it is important that the custom claims on the Firebase auth token are up-to-date when the backend function is called. Otherwise, the user might make a purchase to attain some feature, and not be able to access it immediately because the Function will reject their request. Question:When are the custom claims set, and can I expect them to be available immediately in my Firebase functions after a purchase?More specifically, if I await any calls into RevenueCat when a purchase is made, will all Firebase functions called from that point onwards have the custom claim set in the request? Or is t
Hello,Unfortunately documentation page https://www.revenuecat.com/docs/firebase-integration provides only client-side authorization check getAuth().currentUser.getIdTokenResult() .then((idTokenResult) => { // Confirm the user has a premium entitlement. if (!!idTokenResult.claims.activeEntitlements.includes("premium")) { // Show premium UI. showPremiumUI(); } else { // Show regular user UI. showFreeUI(); } }) .catch((error) => { console.log(error); }); It won’t prevent me to write code accessing Firestore with expired subscription. Can you please provide some examples / design patterns / best practices for server side? For example, Cloud Firestore Rules which check subscription status, or maybe cloud functions? Hard to guess ;)
Hello Team,Is there any possible way to test revenueCat’s webhook events in my local envirement ?I mean something like stripe CLI tool or any way to see the events on my local machine without need to deploy a test server or directly test in production Thank you!
So google ads needs IAP events to be fired via google analytics, which is then used by google ads to optimise campaigns.I am using RC for react native for both subscription with trial and product purchase. I am just wondering if these IAP events are fired automatically in both android and ios?I can see there is an Firebase integration, but i think Google ads will need device identifier to identify users, so was wondering if events in analytics are logged via an integration will it still work.In short, I want IAP events (in_app_purchase, Subscription trial and subscription convert) to be logged to analytics which will work with Google Ads action optimisation. Whats the best way to work with this?
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.StackVue.js + CapacitorJS + FirebaseWhat’s happeningSubscriptions 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 updatedUser 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
Hello,we used the event `in_app_purchase` to track the purchases that where made in our app. Sadly, that event has stopped firing after updating the RevenueCat and Firebase Capacitor Plugin.Does someone know if the event `in_app_purchase`, which is automatically collected by the firebase sdk, is the same as `rc_trial_start`?Firebase Events Docs: https://support.google.com/analytics/answer/9234069?hl=en&visit_id=638606024194872788-4062852051&rd=1Thanks in advance,Marius
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.