Get help with your SDK implementation.
Recently active
Hey there, I have looked online and in the forums but could not find a way to configure the HTTPClient with customable timeout.Basically from my code overview (iOS SDK - https://github.com/RevenueCat/purchases-ios) the HTTPClient is internal to the SDK and you cannot configure it - am I wrong?We suffered from long timeout today which caused our application to hang.It could be a nice addition to the Purchases singleton API to add additional configuration for different underlying services the default o60 seconds of NSURLSession is obsolete.I also encoutered this PR - https://github.com/RevenueCat/purchases-ios/pull/910 that enabled timeout for SKProductRequest - again allowing to configure it from outside of the SDK could be handy.
Hi folks, I am testing the purchase function and running into a problem that, every time I called the purchase function it will ask me to login using my Apple ID. I tested on both physical device and stimulator. I’ve login both before I installed the app (i also tried uninstall and login again but no luck). Any advice? Thanks a lot.
This have been extremely frustrating, and I am in dire need for help or assistance. I created a app and added the RevenueCat code information to my project, and followed all the examples exactly. I watch countless videos. I finally got it to work on the simulator IOS 14 like explained. it works perfect. I triple checked my information both on RevenueCat platform and in apple developer. after being uploaded to apple developer, and I downloaded it from TestFlight. I try to make a purchase, and nothing happen. it is as if the screen is frozen. please help me with this issue. Thanks!!!!
Current situationMy app is currently on IOS and Android. The IAP work correctly. Im under Flutter.I used to purchase by requesting the product identifier (see below):await Purchases.purchaseProduct(<product identifier>, type: PurchaseType.inapp); Problem with new situation:Now, I have several offering with multiple packages in RevenueCat.So, I need to fetch the offering from RevenueCat when the app starts:Offerings offerings = await Purchases.getOfferings(); Look at the Response, there is an error on the price shown by RevenueCat: I end up with a different price sent by RevenueCat for the same product identifier : Price on Apple Connect: 2.99 EUR (Tier 3) Price on Smartphone in Production: 2.99 EUR Price on Response from RevenueCat SDK: 3.49 EUR (ERROR)The issue is only with IOS. I checked Apple Connect, the price is correct (see below) : I checked the purchase on Production smartphone, the price is correct (see below) : The error is only on RevenueCat when I fetch the offering.
On the Github page it seems the createAlias() function will be removed from RC SDK 5.0.Why? We use this function in our app to let users restore their purchase when switching phones or accounts. Without this function we would need to do this manually for every user via email customer support. Ofcourse this does not scale.Is there a alternative to createAlias() in the 5.0 SDK?
Hi there,I have realised that due to a bug in my code, I have not been logging in all users.As we are in the internal testing phase, this is not such a big issue.However, once the app is released it might become a problem, as users who created accounts during internal testing need to use the same app accounts. These users have not been logged into RevenueCat but are just anonymous users.My question pertains to the RevenueCat representation of these users. Is it an issue that the user who has been an anonymous user during internal testing (no purchases taking place), be logged in in RevenueCat? Thank you, and sorry for the somewhat confusing question!
Hello,I have an Android app and I have this issue with transferring subscription. My app initially purchases a subscription as an anonymous user and then later on the users can bind this subscription to their email. To do so I use the login function of the SDK, however, while the server callback returns successfully and it passes, when I try to access the entitlements info it always fails ( nothing is found). When you try again with the anonymous user, the entitlements are there which I assume means the subscription has not been transferred, I’ve also tested with listening for the UpdatedPurchaserInfoListener but I don’t receive any callbacks.I’m using v3.3. Is this kind of a deprecation bug( now that v3.4 is out), or am I missing something here?
I am attempting to determine the subscription status, am currently using Swift. The following works:Purchases.shared.offerings {...but the following does not exist:Purchases.shared.getCustomerInfo {… I am currently on version 3.10.7 What am I missing?
As RC 3 is available: When is 5.0.0 planned to be stable?
Currently, the paywall in our app is only shown to users who are logged in, so we do not need to deal with anonymous users. However, we are introducing Apple offer codes and we want to support the URLs with the offer code embedded. I am hoping this flow will work: User clicks on the URL with the Apple offer code embedded User redeems the code User downloads our app and registers with us, we create a user ID for them We call setup from the Flutter SDK with the user ID At this point, if we make a call to GET /subscribers/app_user_id with the new user ID, will it return the entitlement that was granted using the offer code? Will setup have aliased the anonymous ID with our new user ID? Thank you very much for your help!
We are going to use RevenueCat to sale our macOS application using only Stripe.I followed your documentation to setup products, offering packages and entitlements.I also installed your SDK (version 3.3).I am however facing the following issue:ERROR: 🍎‼️ Error fetching offerings - Error Domain=RCPurchasesErrorDomain Code=23 "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).I do not understand why I am getting this issue because this app will be sold outside the Mac App Store. So it raises several questions:I only selling a Mac App outside the MAS, using Stripe supported by RevenueCat and if yes can we use the SDK? If yes, what can be the source of the issue If no, what do you recommend to achieve what we want to do? Thanks for your help,
We wanna implement promo codes (like -20% price for subscription) with Flutter for both Android and iOS platforms, it look’s similar with this question.So, do we have any example?There is no example on how do that in official resources.Very appreciate for the help!
Sorry if it’s been asked before, I couldn’t find any similar questions. As far as I can tell, it’s not possible to access the user attributes via React Native SDK, only REST API, can someone confirm? Thanks.
Hey guys,We are having difficulties with transaction_id and original_transaction_id fields which can be accessed from the SDK. Sometimes both of these fields have values and sometimes original_transaction_id is simply empty. When we take a look at the events which are being send via web hooks, we can actually see that original_transaction_id is not empty.Can you please tell us why is this happening?Also, I would like to know if there is a rule which is dictating the behavior where original_transaction_id would be empty after successful purchase?Kind regards,Aleksandar
Hi there!I am using this function to purchase products or subscriptions: purchaseProductWith(activity, skuDetails, onError, onSuccess) and I have the following use case: I am trying to purchase a subscription, then immediately after the payment is made, I lose my internet connection. In purchaseProductWith I receive onError → NetworkError, which is ok. Google also sends me an email with the receipt. Then once the internet connection is stable, I am not receiving the Product object from purchaseProductWith → onSuccess, in fact, this method is no longer triggered. If I try to buy again the same subscription it says that I am already subscribed, which is also correct, I already payed for the subscription. The problem is that since we don’t receive back the Product object from purchaseProductWith, we have nothing to send to our server, the server needs this object to validate it with google and to grant the user the necessary permissions to unlock features. We have a lot of clients who hav
I have been going over the requirements for a successful request for In-App Purchase products at app startup, as explained here. One such requirement is to have signed any outstanding App Store agreements, such as the Paid App Agreement or the Tax Agreement. Now, these come by surprise and every once in a while I find a new alert in App Store Connect prompting me to sign them.The question is: will the request for In-App Purchase products fail as soon as there is a new requirement for an outstanding document from the App Store? If that is the case, is there a way to get notified of such requirements to limit disruptions to the subscription flow?Thanks!
Does anyone know how to clear these issues/errors from the swift package?The don’t appear to be obstructing anything, and only appeared when migrating to the 4.0 SPM, the project still build/runs (seemingly) without issue.
Here in Europe, some banks are requesting a 2nd step verification to confirm a purchase (especially if it’s the first time the user order something with its Google Play account)This verification is made thanks to the customer’s bank app.The process is the following : when going through the process to purchase something (a subscription in my case), before the purchase is validated and before the Google Play bottom dialog is closed, the user’s phone receive a notification from its bank account to confirm the transaction,BUT sliding the top bar to see the notifications and tap on the one coming from the bank app IS CLOSING the Google Play bottom dialog.Then validating the transaction didn’t transform the purchase from a “pending” state to a “purchased” state.How do I have to handle this case??Thanks!
Hi, I have checked all of the items in and made sure its all correct. The app is not released but published in a close testing channel which I’m part of. Still, no offerings come back, whats going on? These are my logs: D/[Purchases] - DEBUG( 1110): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3Aafb7767ec56d420081f8cce0563c5200D/[Purchases] - DEBUG( 1110): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3Aafb7767ec56d420081f8cce0563c5200 201D/[Purchases] - DEBUG( 1110): ℹ️ Sending latest PurchaserInfo to listener.2I/System.out( 1110): (HTTPLog)-Static: isSBSettingEnabled falseD/[Purchases] - DEBUG( 1110): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3Aafb7767ec56d420081f8cce0563c5200/offeringsD/[Purchases] - DEBUG( 1110): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3Aafb7767ec56d420081f8cce0563c5200/offerings 200D/[Purchases] - DEBUG( 1110): ℹ️ Requesting products from the store with identifiers: somus_isa
I tested my app for payment on Test Flight and it works fine I submitted my app and I get the following error message. I am not sure on how to reproduce this issue. Any pointers much appreciated.Hello,Thank you for providing this information.Upon further review, we found that your app does not comply with the following guidelines:Guideline 2.1 - Performance - App CompletenessWe found that your in-app purchase products exhibited one or more bugs when reviewed on iPhone running iOS 15.3.1 on Wi-Fi.Specifically, when we tried to top up credit, we were receiving a message saying “Purchase cancelled”.Next StepsWhen validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code "Sandbox receipt used in production," you should validate against th
Hello,My code below gets the following build errors.None of the following functions can be called with the arguments supplied.Cannot infer a type for this parameter. Please specify it explicitly.I am copying from the Android set up guide and can’t see what I am doing wrong. Any guidance would be greatly appreciated. fun attemptPurchase(inActivity: Activity, forPackage: Package) { Purchases.sharedInstance.purchasePackage(inActivity, forPackage, onError = { error, userCancelled -> println("Error ${error.localizedMessage}") }, onSuccess = { product, customerInfo -> } )}
Got this error while trying to setup Purchases 3.4.3 in React Native.Method addObserver must be called on the main threadAnyone faced it?
I am getting a "Invalid Product Identifiers" error followed by this other error:"None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect [...]".This is for a new iOS app, not yet live on the App Store. I'm testing on a real device.I have followed the guides carefully and I have gone over the post here and some other posts in the community but can't figure out what the problem is.This is all I have checked:"The product identifier set in RevenueCat matches exactly with the store". Not really sure what is exactly meant by product identifier here. I have tried both the Bundle ID and the SKU and got the same errors. ❓ "You're testing on a physical device and not a simulator". I'm testing on physical device. ✅ “The bundle ID in Xcode [iOS] or package name [Android] match what's in App Store Connect or Google Play" Bundle id matches ✅ “If you have both development and production environments for your app, be sure to double check you are using the c
Besides the sdk still being in beta(rc), would you say it has the features to be used in production? or does it not yet have all the basic features of the old sdk? Will RevenueCat support the new refund API apple introduced past WWDC with v4?
[using Flutter SDK] on iOS when I call Purchases.purchaseProduct and it throws the exception(s) PurchasesErrorCode.paymentPendingErrororPurchasesErrorCode.storeProblemErrorThe docs suggest that this is not an error and to inform the user that the purchase is pending.For some customers, they do not succeed in setting up a valid payment method at this point. I have instances where the actual purchase comes through 30+ days later (when a payment method is finally established, probably for another reason). At this point the payment is taken but the user may have uninstalled my app by then! Ideally, I would like to cancel the pending purchase in the App Store at this point and then require my users to go through the purchase flow a second time.How can I programatically cancel a pending purchase on iOS or at the very least, see this state outside of the purchaseProduct exception and report it to the user?
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.