-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getOfferings not work #1036
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
[MAJOR BUG | PRODUCTION] Watch out!!! It works in sandbox but throw an exception in prod!! I got a major bug in production due to this exception as it was not showing up in development environment (even in testflight or internal testing). Make sure you try catch this method!! |
Request: The SDK should return an empty list if there's no offering but not an exception. |
Hey @filipenanclarez , If your products, offerings, or packages are empty it's most likely related to a configuration or setup issue in Apple/Google. We've put together a handy guide here that outlines the common reasons for this here: https://community.revenuecat.com/sdks-51/why-are-offerings-or-products-empty-124 As the logs mentioned, our SDK was unable to fetch those product identifiers from Google Play to retrieve valid products. Are you sure you've published your app on a closed track? And can you double check your products are marked as Backwards Compatible in the Google Play Console dashboard? https://www.revenuecat.com/docs/android-products#google-subscription-model-v2---current-revenuecat-support Here's how it works under the hood: If the stores are unable to return valid products, it means that somewhere in that cycle there is a configuration issue. If there is a typo in your product identifier, the request will fail. If the bundle ID doesn't match the configuration in App Store Connect (or package name for Google Play, etc.), the request will fail. |
If the problems is setup, why all works fine in v5.8 ? |
Hey @filipenanclarez Can you send full debug logs of this? |
What you mean whit “full debug log”? the debug log is activated and the print show what’s appears on the logs when getOffers method is fired. |
Hey @filipenanclarez Full debug logs would be from start to finish including the initialization and when the SDK is first configured. |
Hey @filipenanclarez Any updates on this? |
Sorry for that. Because my project already in production, i rollback version, to publish fix to my users. No time to make this lab yet. |
same here. also had to rollback to the working version |
Hey There, I recommend updating to the latest versions of the SDK as they have been stable and have not been seeing any issues with fetching offerings. Let me know if that helps! |
@michaelAtRC Here's the full log, Could you please help? DEBUG: ℹ️ API request started: GET '/v1/subscribers/NgJcJZoRYDWypAPnjA4IY53XuFC3' |
@flutterdev77 This looks like the standard fetch failing because of the permissions attached in your service credentials JSON not being correct. I recommend going through our credentials guide here and making sure that you upload your service credentials JSON from the same account that you followed this on. Keep in mind, these credentials can take 36 hours to go into effect from Google Play, so make sure to check back after that time period! |
Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!
Environment
flutter doctor
purchases-flutter
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Describe the bug
After upgrade my project to flutter 3.19, when i try getOfferings, nothings happen.
Additional context
Flutter Doctor
Version of purchase_flutter
Testing device version
Android ASUS Z017DA API 26
How often the issue occurs
In production and in dev env. Many users reporting the bug.
The text was updated successfully, but these errors were encountered: