Get help with your SDK implementation.
Recently active
Hi there! I’m using an App Store sandbox user, auto-renewable subscriptions, and have enabled the “Interrupt Purchases for This Tester” option in App Store Connect.When forcing the interruption, the `purchasePackage:` method fails with the correct error description.I’ve set my delegate to call the method `didReceiveUpdatedPurchaserInfo:`. After the user agrees to the new terms, the App Store window closes and confirms the purchase but the delegate method `didReceiveUpdatedPurchaserInfo:` isn’t called. If I try to purchase the subscription again, I’m told I already own it.I would expect the `didReceiveUpdatedPurchaserInfo:`delegate method to be called in this case. I’ve set up Apple Server-to-Server Notifications via the link provided by RevenueCat with no luck. Anyone know what might be going on?
Hi, which is the value to use in purchaserInfo!.entitlements[entilementName]! to get the number of renewals for the current subscription?purchaserInfo is from RevenueCat.Purchases.shared.getCustomerInfo { (purchaserInfo, error) inThank you.
Hey thanks for listening. I have been using Google play billing library since past 2 years and now switching to Revenue cat. I have few questions regarding migrating subscribers of my app. So there are two types of subscribers 1. monthly and 2. annual subscribers. I have saved their data in firebase realtime database and nowhere else.Your docs were really helpful in integrating the Purchase SDK of RevenueCat but what i am not able to understand is about migrating these active subscribers (around 20). Won’t the RevenueCat automatically be able to communicate with Google Play Servers and check if a user is premium user and active? If not and if i have to manually update the data (which is incomplete as i don’t know about the app_user_id) then what is the best possible way to handle this?
I’m trying to test the Amazon library, and get the following for Offerings back from RC…{“offerings”: {“all”:{}, “current”:null}}Notes:We only have one Offering Works on iOS and Play Using the correct new Amazon Public app-specific API key Checked “Use Amazon” in UnityAny insight into this issue?Thanks!
Flutter Channel stable, 2.10.4Dart SDK version: 2.16.2 (stable)purchases_flutter: ^3.10.0​​​​​​Serial request done: GET /subscribers/#######/offerings, 0 requests left in the queue[Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/######/offerings 304Â
I just started trying out RevenueCat today and I want some clarification about not being able to use an SDK for the web, hence not able to get `getPurchaseInfo` of a user to check what subscription the user is on. What would be the best way to do this?I have a cross platform app built with capacitor for android, ios and also for web.I am working on adding app purchases and stripe for web.I realized that I cannot use the Ionic Capacitor sdk on the web. The error message says `cordova_not_available`, which makes sense. So would this “plan checking”, have to be done on my backend side, where my backend does an API request to RevenueCat backend and my backend sends this information to the web client? Then, why not do it this way on the mobile app?
We recently had a user who started their 14 day free trial on March 31.We got a webhook from revenueCat for this initial purchase with an expiration date of April 14 at 06:13GMT. We use this expiration date as the trial end date / next renewal date.The user’s customer profile lists that their trial converts on April 15th and we haven’t yet received another webhook for this user (which makes sense because it is not the 15th yet).Why is there a discrepency between the expiration date in the webhook and the trial conversion date?These types of errors end up with users who don’t have access to an app that they paid for and are very rightfully upset as a result.
We are testing the android side subscription and it is not working. We have managed to complete the iOS side configuration successfully, Subscribed from iOS and fetched from android as well. But,But, when we try to subscribe from android, subscription get's completed as well in the plays tore account. But It's going to the on error method of the revenuecat SDKs. And the error message prints below error2021-12-18 12:40:50.694 29887-30921/com.goviral.app D/[Purchases] - DEBUG: ℹ️ API request completed with status: POST /receipts 5032021-12-18 12:40:50.698 29887-30921/com.goviral.app E/[Purchases] - ERROR: 🤖‼️ There was a problem with the Play Store. Please guide us on why this is happening, Since playstore account is showing the subscription successfully. But revenue cat is not getting it and showing the above error and not reflecting in the users account.Â
Hi guys, I just added/configured RevenueCat in one of my apps and when I try to test in the simulator with the StoreKit Configuration File I’m getting some weird errors… Basically I was able to purchase the auto renewable subscription I’ve set up but now each time when I start the app, the SDK sends a request to the /v1/subscribers/{UUID} and when it tries to decode the response it throws an error with No value associated with key CodingKeys(stringValue: \"attributesErrorResponse\", intValue: nil) (\"attributesErrorResponse\"), converted to attributes_error_response. As far as I can tell from the debug console messages everything else seems to be fine, no errors happening… I’m using the latest version, 4.2.1 via SPM.Any ideas what I’m missing?Thank you!-------Later Edit. This is weird, but was caused by a misconfigured bundle id. My debug builds will append a .dev suffix to the bundle id so … this is was screwing up with RevenueCat SDK.Â
Hello,it’s possible to test Purchases with android emulator (google pay activated) , because Offerings.current is empty.2021-12-14 17:33:19.831 11616-11920/io.umotorsports.kart D/[Purchases] - DEBUG: ℹ️ API request started: GET /subscribers/1/offerings2021-12-14 17:33:19.831 11616-11920/io.umotorsports.kart D/[Purchases] - DEBUG: ℹ️ API request completed with status: GET /subscribers/1/offerings 3042021-12-14 17:33:19.831 11616-11920/io.umotorsports.kart D/[Purchases] - DEBUG: ℹ️ Requesting products from the store with identifiers: um.subscription.gold.monthly.kart2021-12-14 17:33:19.832 11616-11920/io.umotorsports.kart D/[Purchases] - DEBUG: ℹ️ Requesting products from the store with identifiers: um.subscription.gold.monthly.kart2021-12-14 17:33:19.832 11616-11920/io.umotorsports.kart D/[Purchases] - DEBUG: ℹ️ Querying purchases2021-12-14 17:33:19.841 11616-11929/io.umotorsports.kart D/[Purchases] - DEBUG: ℹ️ Products request finished for um.subscription.gold.monthly.kart2021-12-14 1
Hi,We are using Alias (legacy) restore behavior and I wonder if switching to Transfer purchases would be safe to do?We already have paying users. We do not have any login mechanism in the app itself and we fully rely on RevenueCat. My motivation to switch from Alias (Legacy) to Transfer Purchases is to enable premium users to get premium features connected with the Premium subscription on multiple devices they use with their Apple ID/Google ID.So the desired result is that a user who downloads our app on a mobile phone and pays for Premium Subscription can download our app also on iPad or other phone and will get premium features of our app on those devices too.Could you please advise if this is doable with switching to Transfer Purchases and if it is safe to switch restore behavior on a running app?Thank you.Lukas
We are interested in supporting App Store Promotion for our subscription feature and noticed saw that SKPaymentTransactionObserver method is required to process this transaction. We are using Flutter with RevenueCat (and inexperienced with native iOS) and had some clarifying questions:Is shouldPurchasePromoProduct in https://docs.revenuecat.com/v3.0/docs/configuring-sdk equivalent to supporting the SKPaymentTransactionObserver? If question above is yes, does shouldPurchasePromoProduct have to be implemented on the native iOS side? Is there any recommended ways to support this in Flutter? The documentation mentions “If your app is able to handle a purchase at the current time.”  What conditions or user states should we be aware of to know if the purchase can be handled (e.g., is it just whether we can tell our app that the user is now a subscribed user?) Thanks!
Hi,I am seeing a weird behavior from RevenueCat in our app where purchases are getting linked to the wrong account. I’ve been able to narrow it down to the following use case: User logs in with new account. User subscribes. User cancels their subscription. User deletes account. User’s subscription expires. User logs in with new account. User subscribes again. Purchase is linked to old account instead of the new account. Here’s what I see in the customer history for the old account who is erroneously getting the subscription:  Here’s the history for the new account (Don’t mind the promotional entitlement I granted them while I investigated the issue):  This is clearly the wrong behavior since the user purchased the subscription after logging in with the new account. The purchase should not count as a renewal but as a new purchase on the new account. It seems that RevenueCat erroneously thinks the old subscription was renewed. I do understand that restoring purchases might solve this iss
Hello, Just received a rejection because StoreKit did not return any products for my app. This is my 1.0 submission, but I previously submitted a build that was approved, as were all my iAPs.Now I’m submitting a new 1.0 build, and with all iAPs approved, StoreKit is not returning any products, resulting in a rejection.Everything works perfectly in Debug and TestFlight
I'm moving from my paid iOS app to a subscription model. I synced the build number of the paid app using the purchaseHelper.  https://github.com/codykerns/PurchasesHelperCompatibilityAccessManager.shared.syncReceiptIfNeededAndRegister(entitlements: [      .init(entitlement: "premium", compatibleVersions: ["1", "2", "3","4","5"])    ]) How can I test that existing paying users are converted to Premium before releasing the app?If I buy a paid app on my device and update it to a test flight, will I be able to test it?Â
A growing number of our Android users are experiencing unexpected subscription expirations due to the PurchaserInfo.getEntitlements() returning empty incorrectly.  The user will then use the restore functionally and PurchaserInfo.getEntitlements() will return correctly with their entitlements on the restore callback.  Within the the next couple sessions the user will get 0 entitlements returned again and be forced to restore once again. This behavior does not seem to stop and the users are stuck in this loop.  Background information:- Android- Confirmed users own entitlements in rev cat dashboard- RevCat Version: v3.3- We call Purchases.getSharedInstance().getPurchaserInfo() to verify subscription on every session
Hello, In my app I have Block Restores enabled and the following situation:2 auto renewable subscription options set up - monthly and annualUser A subscribes to an annual subscription User B logs in on the same device and tries to subscribe to annual - gets the `receiptAlreadyInUseError` and I show an error But if User B tries to subscribe to a monthly subscription - the subscription goes through, switching User A’s subscription to a monthly subscription instead of annual (user B still doesn’t have a subscription, as expected)How can I tell that the currently logged in Apple ID is already subscribed with a different user and show an error when another user tries to subscribe and inadvertently changes the original user’s subscription?`CustomerInfo` doesn’t seem to have that info, User B has no active subscriptions.
Hi,I’m in a situation where I have to test on a simulator, but despite setting up my StoreKit Configuration, I continue to hit a brick wall. Note, testing on a device was working fine.I’ve scoured as many relevant help articles as I could find on the community, but I’m still stuck.Specifically, I get an error message saying the product identifier I’ve created in my StoreKit Configuration is invalid, and that an SKProduct could not be found.Invalid Product Identifiers - ( "com.gravy.dev.monthly_4.99")Could not find SKProduct for ( "com.gravy.dev.monthly_4.99") I’ve tried this in a few different ways, always making sure the product existed in RevenueCat, and was apart of a “current” offering. That, and I’ve made sure to attach the StoreKit Configuration in my run options on the current target - but still no luck.Also, fwiw, I tried mimicking a current App Store Connect setup in my StoreKit Configuration, but that didn’t work either. Upon checkout, I’d get an error saying there was
I need the purchaseToken for our server. This field exsits in the Android API,/** * Token that uniquely identifies a purchase. */ val purchaseToken: String,And it is received upon purchase. But iOS API of the purchase function below doesn't send it backfunc purchase(package: Package) async throws -> PurchaseResultDataWhen I debug, I see a similar data inside this:purchaseResultData.customerInfo.allPurchases.first?.value["id"]But allPurchases is private so I can't get it this way.Any ideas?
Hello, I’ve added my Google Play Credentials 48hrs+, but still get this error, can you please help me?D/[Purchases] - DEBUG( 5434): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3A2d82a4e3f2fa46c49d3afc4701689e76D/[Purchases] - DEBUG( 5434): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3A2d82a4e3f2fa46c49d3afc4701689e76 304D/[Purchases] - DEBUG( 5434): ℹ️ PurchaserInfo updated, sending to listener.D/TrafficStats( 5434): tagSocket(168) with statsTag=0xffffffff, statsUid=-1D/[Purchases] - DEBUG( 5434): ℹ️ Vending PurchaserInfo from cache.D/[Purchases] - DEBUG( 5434): ℹ️ Checking if cache is stale AppInBackground falseD/[Purchases] - DEBUG( 5434): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3A2d82a4e3f2fa46c49d3afc4701689e76/offeringsD/[Purchases] - DEBUG( 5434): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3A2d82a4e3f2fa46c49d3afc4701689e76/offerings 304D/[Purchases] - DEBUG( 5434): ℹ️ Requesting products fro
I have added a scheduled change in the duration of my introductory offer in App Store. I have change the offer duration from 2 weeks to 1 week, and scheduled the change to happen in two days. But when I test my app, product.introductoryDiscount?.subscriptionPeriod returns 1 week which is the upcoming change and not 2 weeks as expected. When I click to buy the subscription the iOS subscribe page shows 2 weeks trial period. Am I missing something here?
React nativeOn make purchase getting errorError: There was a problem with the App Store.  at Object.promiseMethodWrapper [as purchasePackage]
Hi, Alankrit here, We are planning to move to RevenueCat from our existing subscription architecture, in which, we save Apple App Store user subscriptions, in our backend, and they have the “originalTransactionId” as the unique key. We do not store any App Store receipts. While reading the migration documentation here https://docs.revenuecat.com/docs/migrating-existing-subscriptions , I figured that it is required to have a record of all App Store receipts, in order to migrate existing user subscriptions to RevenueCat. Some answers :suggest we should do Client Side migration. But, another aspect of our current architecture is, we first ask users to subscribe and only then they log in / sign up, so it is possible that at the time of subscription we may not have any user info. Question: Will client side migration work in this case ? And if so, any guidance on how to implement it would be really appreciated.
Hi Guys!Our project uses revenuecat with react native. We noticed a problem with purchases on Android TV when a user doesn’t have the payment methods defined on his Google account. When a user tries to purchase an item google directs the user to a page where  presents 2 options: complete the purchase on an Android device, or following a link on a desktop. When a user completes the payment on another device the app doesn't get the information about the purchase and the only option that the user has is to try to back to previous screen.and we get this error:  2022-03-24 11:37:42.025 18325-18325/? E/[Purchases] - ERROR: 🤖‼️ BillingWrapper purchases failed to update: DebugMessage: . ErrorCode: USER_CANCELED.null2022-03-24 11:37:42.029 18325-18325/? E/[Purchases] - ERROR: 🤖‼️ Purchase was cancelled.The purchase is completed by the user, but he can't access the app’s content because the app doesn't know that he has purchased the item.Anyone has experienced this? We really need some help he
I’m using the iOS SDK getOfferings API which provides the Offerings Data how we can get the Entitlement ID from the Offering or Package ? Purchases.shared.getOfferings { (offerings, error) in if let packages = offerings?.current?.availablePackages { // want to know the Entitlement ID from the Offering or Package }}Â
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.