Question

How to restore payments from another device with the same Apple ID account?

  • 24 June 2023
  • 1 reply
  • 24 views

Badge +3

We are using visitorId from Fingerprint to identify the user. and it is used as the only user account on our system.

Purchase setup

Purchases.configure({
             apiKey: REVENUECAT_API_KEY,
             appUserID: visitorId, //We are using Fingerprint to identify the user.
             observerMode: false,
             useAmazon: false,
             usesStoreKit2IfAvailable: true,
           });

User A using device1 with identifier visitorID1 and AppleID1 makes the payment

In case of used 

  • User A using device 2 with identifier visitorID2 and AppleID1 can restore the purchase.
  • On the backend we can swap subscriptions between visitorID1 and visitorID2

1 reply

Userlevel 3
Badge +6

Hi @natuan 

I’m not sure I understood the question/problem, but let me try to share what I understood and some information to see if it helps.

 

This is what I understood:

You have users (that you can identify based on fingerprinting) that can use different devices, and you want to make sure that the user has access to the right content. 

 

If what I’m describing is accurate, have you considered calling login when you identify that userA is using Device 2? (https://www.revenuecat.com/docs/user-ids#login-method-alias-behavior)

When you do a restore (https://www.revenuecat.com/docs/restoring-purchases) it will restore all the purchases from AppleID1 to the current user. Be aware of the restore behaviour configured in RevenueCat as that has implications.

Reply