Get help with your SDK implementation.
Recently active
I am looking at the page Configuring the SDK, in the sub section, advanced configuration for iOS - https://www.revenuecat.com/docs/getting-started/configuring-sdk#ios and the documentation for this method is really limited.How do I know how to handle the completion block and what each of the arguments from that completion block do? An example in the docs of how to implement it would be really useful. Any help would be much appreciated. Thanks
When payment fails because I am already subscribed, I want to know the originalAppUserId of the subscriber.
Hi guys,We are building an app that user can have several groups that each group have a subscription plan (free, bronze, silver, gold). IOSSubscription GroupsFamily 1 fw1-google-plan1890 fw1-google-plan2890 fw1-google-plan3890 Family 2 fw2-google-plan1890 fw2-google-plan2890 fw2-google-plan3890 AndroidSubscription: Plan BronzePlans:fw1-google-plan1890 fw2-google-plan1890 fw3-google-plan1890 fw1-google-plan1890 Subscription: Plan GoldPlans:fw1-google-plan2890 fw2-google-plan2890 fw3-google-plan2890 fw4-google-plan2890Related to IOS, this is working well, but in Play Store, we are getting this error when subscribing to the play store: PG-GEMF-01
We’re using RevenueCat for subscriptions, but am now having issues with receiving the `onSuccess` callback when a user subscribes.If the user cancels the flow, we end up in the `onError` callback as expected, but when signing up we just don’t receive the callback, so the flow stops and doesn’t continue.Our implementation is working fine in production, but we’ve redone some of our signup flow, but we haven’t really (to my knowledge at least) changed anything in regards to subscription.The subscription code is called from a `ViewModel` and the function is called from a button click, so the call should be running on the mainthread (not sure if it matters really since it’s a callback).The code is fairly straightforward: Purchases.purchasePackageWith( activity = activity, packageToPurchase = packageToBuy, onError = { error, userCancelled → // Tell the View something went wrong. }, onSuccess = { transaction, customerInfo → // Call the View to update itse
Swift Package Manager,version4.39.0。 some users Why don't have callbacks?
I have an app that user can use to create new videos. I want to offer two plans, Lite and Pro. Lite subscription allows to create 5 videos / week. Pro version allows unlimited videos per week. How to implement this kind of subscription model? The main challenge seems to be checking how many videos are created during a billing cycle. Is there a way to get the current billing cycle information from the API?
Sorry for the long title! Basically, I am trying to just do the basic storekit-configuration json in my react native and expo project. I have the storekit-configuration.json that I copied and pasted from an Xcode project, but I am getting the following error: [Error: There is an issue with your configuration. Check the underlying error for more details. There's a problem with your configuration. None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used). To be fair, I have been getting this error even before I tried to use the configuration file, but I thought this would help. I’ve seen some similar issues and followed what they said, but it still will not work. Has anyone had luck with this?
My Environment:iOS 17 SwiftUI RevenueCat 4.33.0 Xcode 15.2My Problem:I have set up two subscriptions in Apple App Store Connect and RevenueCat according to the documentation with one entitlement (“pro”), 2 products, packages and one offering. I have configured a paywall in the RevenueCat dashboard. In App Store Connect, I have configured Sandbox test users. In my App I use Sign-in with Apple to sign in with the test user and I use the Apple user ID to sign-in with the RC appUserID. In the RC debug overlay, I see the correct user ID and the former anonymous user ID. When I open the RevenueCatUI PaywallView in my App running in the simulator, I see the 2 offered subscriptions. Then I click the buy button and the Apple purchasing dialog opens with the chosen subscription for the Sandbox User. When I click to buy the subscription, I hear a “bing” sound (normally indicating a purchase). Then the Apple purchase dialog disappears and a progress indicator is visible in the purchase button of
Hello, I have configured my app (flutter) with revenue cat. I have two groups of subscriptions, those from v2 and the new ones from v3, on IOS. My problem is that the some of the previous subscriptions are not detected (either naturally or by restoring purchases), even though they are in the same entitlement. The purchase restoration function doesn't return any errors, just the customerInfo, with allPurchasesdProductIdentifiers, expired date … but one one them, the valid one, is missing. My revenue cat version is up to date (purchases_flutter 6.25.0). The rest of the functions work fine: purchasing, cross-platform restoration, link to the .... account. Can you help me? Thanks in advance
We have bunch of applications live on App Store would like to create single subscription to unlock premium features on those all apps. We have gone through all documentation and understand about how we can implement same thing. We came out with this solution using RevenueCat.RevenueCat allows to create different apps under one project.We would like to know to evaluate our solution and want to confirm we are on right track or if you see any wrong implementation or if you have any better solution, then let us know.Solution:1. Create project "Single" and add all applications under that project2. Create one new subscription for each appFor exampleApplicationOne -> com.applicationone.singlesubscriptionApplicationTwo -> com.applicationtwo.singlesubscriptionApplicationThree -> com.applicationthree.singlesubscription4. Create new entitlement named "single-subscription" and add those products from all appsSo if that single-subscription product purchased from any app, it will unlock p
Hi guys has anyone worked with revenue cat for subscriptions before ? I have a weird error saying 'Error configuring purchases:[Error: There is an issue with your configuration. Check the underlying error for more details. There's a problem with your configuration. None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used). More information: https://rev.cat/why-are-offerings-empty]'I am using this custom hook for it. Is there any obvious mistake? I am using the Identifiers in Apple App Store Connect ‘’This is my setup in the revenue cat dashboard
Hiwe experience crashes on Android that affect our crash rate on Google Play which is bad.We are using "react-native-purchases": "7.1.0"Sentry:NullPointerExceptionParameter specified as non-null is null: method kotlin.jvm.internal.l.f, parameter packageIdentifiercom.revenuecat.purchases.hybridcommon.CommonKt in purchasePackage at line 6com.revenuecat.purchases.react.RNPurchasesModule in purchasePackage at line 87java.lang.reflect.Method in invokecom.facebook.react.bridge.JavaMethodWrapper in invoke at line 149com.facebook.react.bridge.JavaModuleWrapper in invoke at line 148com.facebook.jni.NativeRunnable in runandroid.os.Handler in handleCallback at line 938android.os.Handler in dispatchMessage at line 99com.facebook.react.bridge.queue.MessageQueueThreadHandler in dispatchMessage at line 1android.os.Looper in loop at line 250com.facebook.react.bridge.queue.MessageQueueThreadImpl$4 in run at line 38java.lang.Thread in run at line 923
I have subscriptions in my app that include 7-day trials. RevenueCat handles introductory offers automatically, which is great. However, I want to provide additional custom promotional offers using Apple's "Promo Codes". Examples of these offers could be:3 months free 6 months freeMy question is: Does RevenueCat automatically manage the redemption and application of these custom promo codes? Or, do I need to handle this logic separately within my app?Any guidance or experience with this would be incredibly helpful!
Hello! Here’s the api url: https://api.revenuecat.com/v2/projects/${PROJECT_ID}/customers/${CUSTOMER_ID}/subscriptionsCorrectly Added header: headers: {'Authorization': `Bearer ${AUTHORIZATION_TOKEN}`,'Content-Type': 'application/json'}Here’s the response:{ "items": [], "next_page": null, "object": "list", "url": "https://api.revenuecat.com/v2/projects/XXXXX/customers/$RCAnonymousID:0ee378058790XXXXXXXXXXXX/subscriptions"}Customer has Yearly ACTIVE Subscription in Production. Could you please help how to retrieve Subscription items?Thanks!
Here I am instantiating the Purchases SDK:So according the docs, if I do not provide the app user ID, the Revenuecat should generate one: But when I try to print the app user id, it is returning null? Also I am confused with Purchases.logIn() and Purchases.logOut() methods as I can not figure out their purpose. Can someone also explain the following scenarios: 1)Let’s say user purchases subscription successfully and exits the app(not log outs, just closes the app) and when the user opens the app later how do we know that user is premium user?2)Let’s say user purchases subscription successfully and accidentally deletes the app. When the user downloads the app again how we gonna restore his purchase? I know there is Purchases.restorePurchase() but how does it know if the user has purchases the subscription before? Can you please explain it? P.S. Do not mention the docs please explain it in a simple way if possible.
Hello,long time ago, we were using `Purchases.shared.presentCodeRedemptionSheet()` to redeem offer codes but this was really unrealiable as the docs also state - https://www.revenuecat.com/docs/subscription-guidance/subscription-offers/ios-subscription-offersI am curious if this maybe changed in recent iOS versions? We support iOS 16+ and there is also this new method in StoreKit - https://developer.apple.com/documentation/storekit/appstore/3954431-presentoffercoderedeemsheet.Does anyone use it? Will it work with RC without any other “plumbing”? Or maybe the presentCodeRedemptionSheet already uses it under the hood?We currently redirect to App Store but were wondering whether it is now possible to offer better experience to the users. Thanks!
Hi everyone, I am new here. We’re using react-native-purchases for in-app purchases. Somehow, it was working fine till today on iOS and Android but things started to break on iOS ever since I have decided to delete subscription groups and items from App Store Connect. Basically, I deleted the previous subscription items (also the groups), then I created another group and put all new subscription item into that group. I didn’t touch the in-app purchases tho.When I started testing IAPs (subscriptions and consumables) using sandbox account and with my TestFlight account as well, I have been getting the following error:There was a problem with the App Store. Problem communicating with the Store when trying to validate the receipt.However, everything is working fine on Android. I have double checked my app store connect configuration and RC. Here’s my setup for RC (iOS):Created completely new project in RC ✅ Regenerated App Store Connect App-Specific Shared Secret ✅ Regenerated App Store C
Purchase.addCustomerInfoUpdateListener doesn’t seem to work when subscription is cancelled or expired. Expectation is this callback should be called in this case. However it gets invoked when new package is purchased.purchases_flutter: ^6.24.0
Hi, I am using RevenueCat for using subscriptions in my app. I have configured everything according to the docs. On Apple everything is working fine but on Android, I am facing this issue when I try to get offerings, I get this error There is an issue with your configuration. Check the underlying error for more details.I know there could be some config issue but I have taken the following steps twice:I have followed the guide in this link (https://www.revenuecat.com/docs/creating-play-service-credentials) correctly. I have a checklist of all the things given in this link (https://www.revenuecat.com/docs/google-play-checklists) After going through the community form I found this post ( ) and performed all the steps in it. I am using expo managed project and I have followed this blog to implement it (https://www.revenuecat.com/blog/engineering/expo-in-app-purchase-tutorial/) I have checked all the identifiers in the RevenueCat products page and they are correct as I imported them. I hav
Hi, I’m using Paywalls feature in my SwiftUI App. I want to disable Paywall interactions while purchase is in progress, is there onPurchaseStart callback or something? here is my current implementation: .sheet(isPresented: $userViewModel.displayPayWall) { PaywallView(displayCloseButton: true) .onPurchaseCompleted({ userInfo in print("completed") userViewModel.isPurchasing = false userViewModel.isSubscriptionActive = userInfo.entitlements["pro"]?.isActive ?? false }) .interactiveDismissDisabled(userViewModel.isPurchasing) }
Hello,i integrated revenuecat android sdk in my app recently. Sdk version is 7.7.2.I wanted to downgrade subscription with DEFERRED mode but I couldn’t find it. Therefore, I read document and change log. They said DEFERRED mode has been temporarily removed. However, DEFERRED mode is still in Android dev doc. Is something wrong with DEFERRED mode that it has been removed. Thank you.
Hello I need to modify this file https://github.com/RevenueCat/purchases-android/blob/143cf2a3629c856e0f3848ff6c164d683df8bbc5/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/composables/Footer.ktI have been trying to rebuild the library but has been a real nightmare, very hard to understand the +5 libraries you have like, ui, hybrid, common, google, amazon, and a lot of different packages.Could you help me to build the library I need to modify the structure of the footer I don’t want to create a custom scratch project, just fork or locally modify the library as I’m using the remote paywall feature
I am using Paywalls and when I submit it on iOS, they report this error. And they said they will reject the submission if I cannot fix this bug. Review device details:Device type: iPad Air (5th generation) OS version: iOS 17.4
I replaced my paywall with RevenueCat’s paywall which works great , however I go a rejection from play store due to Subscriptions policy Violation “Your offer does not clearly and accurately describe the terms of your trial offer or introductory pricing, including when a free trial will convert to a paid subscription, how much the paid subscription will cost, and that a user can cancel if they do not want to convert to a paid subscription.”I received the same before when I used to use my own paywall and fixed by changing the package display label to be of the format “You will be charged {price} for {duration} subscription.The subscription will be automatically renewed unless you cancel it`: product.priceString} It is not clear for me how can I customise the package’s label when using RevenueCat’s paywall . Thank you
My app has been public for some time on the app store, yet has been rejected from Google Play twice. Customer support has stated that “Your app contains a subscription but it does not have terms of cancellation.” Our paywall provides a link to our terms of use and includes steps to cancelling subscriptions. They also stated, “ Kindly note that users should not have to perform any additional action to review the information,” implying that a link to our terms of use is insufficient. Is there any way to add this information on our paywall? I have not seen any that include this information but they seem very adamant on this.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.