Hi All,
I have built a Flutter app and used the purchases_flutter
package. In the official release environment on the Google Play Store, one of my users encountered an error with the following steps:
- The user made a purchase before logging in (
Purchases.login
) withAppUserID = $RCAnonymousID:...
. - After that, the user logged into the system, and their
AppUserID
was assigned as their systemuserId
. - The user attempted to restore the purchase (
Purchases.restorePurchases
), but it did not work. The app could not retrieve the previous purchase information ($RCAnonymousID
) and sync it with the current user (userId
in the system). The Google Store account used for the purchase is still active and retains the purchase history.
I checked the Google Store console, and the purchase history is recorded there. When checking the Order ID in the RevenueCat console, and the system recorded the payment with AppUserID = $RCAnonymousID
, which was created at the time of the initial purchase.
For this issue, I would like to ask:
- What could be the possible causes of this issue?
- How can it be resolved?
Since this is an urgent matter, I hope the team can review and respond as soon as possible.
Thank you!