-
Notifications
You must be signed in to change notification settings - Fork 169
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
Android is all of a sudden DEAD - getCustomerInfo doesn't work and getOfferings #992
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
I updated the details above with my findings |
Hey @peazz sorry for the delay on this, I read through your issue and it doesn't seem like it's something that would be affected by our backend. We checked our server logs to double check and didn't find any errors in our GET /offerings endpoint for your app. We also didn't have any incidents and haven't rolled anything out on our end that would address this issue. Seems like redoing the plugin setup worked? Truly strange but it does indicate that the build on your machine got into a weird state. It's uncommon but it does happen enough to the point that we sometimes recommend redoing the install process if unexplained issues arise with seemingly no changes. I'll get this on our @RevenueCat/sdk team's radar just in case. Sorry for the experience here, sounds like you've had a frustrating time. Let us know if there's anything else we can do to help. |
I did....everything. Flutter clean, pub cache reload, the entire lot but problem persisted. I've tried to replicate and for some reason I have been unable too, I have to catch up on stuff but its on my radar to try and find this. I found it so unique. |
Hey @peazz, the SDK team agrees that this was probably a corrupted installation somehow. It's really unfortunate it happened to you but it does happen in rare circumstances. I've also confirmed that we haven't shipped anything that would have silently fixed it. If you're not having any other issues, would it be ok if we closed this issue as resolved? You can always reach back out if something does happen in the future. |
@mshmoustafa I would normally agree, I have been developing since v1 of flutter however, if I switch back to the branch, the issue reappears again. Lets put it down to a config issue but if anyone else raises this, it would be wise to investigate. I got it down to the the platform calls that happen and never being returned from platform level functions. |
I am coming back to this after having to change a product... somehow a yearly subscription was configured to be monthly period. Now, this has brought me full circle;
I am getting the impression that there is a caching mechnism that is potentially buggy and disregarding changes (I assume because they don't happen often) |
nope, you people are just bad at your jobs |
And whom is this directed at? |
getting a bit frustated here, having the exact same issue as you dude. revenuecat seems to be very finnicky to say the least |
It is, rolling your own solution is worse though and alternatives have more involved setups or higher fees. Try rolling back any pubspec changes, I've noticed plugin updates can screw things sometimes. |
worked wonders thank you, rolled back to the last package json change. |
I'm pretty sure package updates may include overrides which messes with RevenueCat but honestly, I am way too busy bootstrapping with no investment, I have no time to chase it for them. |
Version 6.3.0 Upgrading all components to comply with Android rules by 31st August. Was working before, now its not working again - you still have the same problem from may present No offerings return, the call does not return and this is the output of debug log...once again the future does not complete and this time, there is no option to revert to a previous version. Please don't leave me waiting days :)
|
Ok so I solved your problem for you, I've got health issues so applying myself has been hard however;
How do I know? I branched my commit that broke offerings returning null and then started working through the previously applied pubspec changes. The only packages left to update are firebase ones. I suspect flutter_purchases has a requirement on specific versions of core,messaging, analytic or Crashlytics which you need to enforce or alert people too. I'm almost 100% certain of this Messaging 14.9.2 - 15.0.2 I don't have time again to investigate further but I've managed to pin this recurring problem down for you. Above is versions to at we're working, then the versions where revenuecat stops working. Please fix this, you got a lot of people encountering this and it's been a recurring problem for me. You need to enforce version restrictions to what you guys are using in dev to provide a consistent experience. Edit: ok, so I managed to replicate this by removing one of the plugins, when I wrote this, I removed firebase_performance and was running a new build. Upon signing in, the problem returned. So I suspect that if you run flutterfire, any changes you make to these plugins, you'll need to rerun flutterfire configure Why? I'm not entirely sure but this is clearly the problem for me, so, if you made changes to firebase plugins, revert changes and see if you're good to go. |
Environment
flutter doctor
purchases-flutter
6.21.1
Live and dev
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Describe the bug
25/02/2024 - Android stops completing futures...
When loading the subscriptions page and I try to load offerings;
And the code that produces the above debug log
I've checked the profiler, I see no network requests being made at all...
Network requests to my own custom API backend works
If I manually query the subscriber endpoint using POSTMAN, offerings return
Problem is only on Android, offerings / system works fine on Apple
No changes with in Play Developer to cause this
Literally, started for no reason
Additional context
I got to a point where I started going through commits and got it down to where I updated the versions of;
flutter_keyboard_visability: 6.0.0
wolt_modal_sheet: 0.4.1
flutter_quill: 9.2.12
I have epilepsy, I am struggling after this - I will further figure out tomorrow which of this plugins caused this.
I have analysed the rest of the commit and there is nothing that could stop network requests getting through.
Day 3: I have now added back in the above plugins, cleaned the installation and tried again - still working so, there is two possibilities here;
I have obsessively checked all commits, nothing there could have caused this - I am lost for words and can't even offer any help to someone facing the same problem.
The text was updated successfully, but these errors were encountered: