79758069

Date: 2025-09-07 11:04:53
Score: 0.5
Natty:
Report link

The issue occurs because restorePurchases() checks the local purchase history, which may not be synced with Google Play’s server, so it doesn’t show the latest purchase. Triggering the purchase flow with buyNonConsumable() (even if it says "You already own this item") forces the app to sync with Google Play and refresh the local purchase data. After this, restorePurchases() works as expected because the device now has the most up-to-date purchase information. To fix it, trigger the purchase flow on Device B first, and then call restorePurchases() to ensure the latest purchase data is available for restoration.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Uday kiriti