Skip to main content
Question

How can I know that any purchase has been made from a google play or apple account without restore purchase?

  • October 3, 2025
  • 1 reply
  • 26 views

Forum|alt.badge.img

Before showing paywall I want to check if any purchase already made from a google play or apple account. My app will not support account transfer so if the user already purcahse for any account and user logged in with different account we don’t want to purchase with the same google play or apple account. We want to show a message like “Please change your google play or apple account as another user already using that.”. To show this message I need to know from any account a purchase has been made or not. I can do that by Google Billing client but I want to know more generic way using revenuecat.

This post has been closed for comments

1 reply

alejandra-wetsch
RevenueCat Staff
Forum|alt.badge.img+6

Hey ​@souravpalitrana,

Thanks for reaching out!

If you’re using custom App User IDs to identify your customers, and the current user has previously purchased on any platform, a call to getCustomerInfo will return the active entitlement for that App User ID. This works cross-platform, regardless of where the purchase was initially made.

If instead the user logs into a different App User ID with no active entitlement, and your Restore Behavior is set to “Keep with original App User ID”, you won’t know that a purchase exists under another user until you attempt a restore. In that case, RevenueCat will throw a RECEIPT_ALREADY_IN_USE error, which signals that the store account is already linked to another App User ID. You can use this error to display a message like “Please change your Apple/Google account, as this subscription belongs to another user.”

Having said that, we don’t recommend triggering restorePurchases() programmatically, since the OS may display a restore confirmation dialog to the user. This can be unclear if they didn’t explicitly request a restore. Instead, consider handling this gracefully within your purchase flow.

Hope this helps!