RevenueCat / purchases-flutter

Flutter plugin for in-app purchases and subscriptions. Supports iOS, macOS and Android.
https://www.revenuecat.com/
MIT License
608 stars 168 forks source link

Callback function of addCustomerInfoUpdateListener() is not called on hot restart #1192

Open kaboc opened 3 hours ago

kaboc commented 3 hours ago

Environment

Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Describe the bug

The callback function of addCustomerInfoUpdateListener() used to be called both on app start and on hot restart. I have confirmed it with purchases_flutter 8.1.0. I upgraded the package to 8.1.6 today and found it is no longer called on hot restart.

Additional context

It is really inconvenient that I need to kill and rerun an app to avoid the issue in debugging.

It looks like the callback function is not called when restorePurchases() is executed after a hot restart either.

RCGitBot commented 3 hours ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!