Skip to main content
Question

How to know if your apple id/playstore account is already associated with a different appUserId

  • July 25, 2025
  • 1 reply
  • 45 views

Forum|alt.badge.img

userA: purchased a subscription

userA then signs out and userB signs in

if userB attempts to purchase a subscription, I want to show an alert saying ‘Please use a different apple id, this apple id is already associated with a different app account’ 

 

Now, how do I know if an apple id/play store account is already associated with a different appUserId? I need to know it before a user can trigger the Purchases.purchasePackage.


The nearest solution I got is by receiving the RECEIPT_ALREADY_IN_USE but that happens after purchasing the package not before.

 

This post has been closed for comments

1 reply

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

Hey ​@renz-carillo-01fc3b
 

Thank you for reaching out. I'll be happy to help! 

The only way to know if the current store account has an active subscription is to perform a Restore Purchase. If User B restores the purchase, they will have access to the entitlement that User A purchased, which would not fulfill your requirements. 

I think the best approach here would be to change your restore behavior to "Keep with Original App User ID." That way, you ensure that if User B logs in and tries to make a purchase, the purchase entitlement will not be transferred to them, and they will get an error; you can then handle that error and show a message telling the user to use a different Apple ID. We only recommend this behavior for apps with strict login logic, which never allows users to access their app without logging in. 

You can read more about Restore Behavior here, learn about all the types we offer, and decide which one works best for your app.