I am considering whether a unique device ID is suitable as user ID for my use case.
I came up with the following subsequent scenarios / concept, can someone confirm or correct my understanding of how RevenueCat works?
----------------------------------------------------------------------------------------
Baseline
The App uses Device ID as RevenueCat User ID -> identified User.
The scenarios take place on iOS.
----------------------------------------------------------------------------------------
Scenario 1
User named Tim
- installs App
- on Device ID 1234ABC with
- Apple ID tim.cook@apple.com
- and makes a purchase in the App
Result: Receipt is stored with Apple ID, Purchase associated with Device ID is stored in RevenueCat
----------------------------------------------------------------------------------------
Scenario 2
Then, Tim
- installs App
- on another Device ID 5678DEF
- with same Apple ID tim.cook@apple.com
- and launches the App initially
Effects:
- App initially calls syncPurchases once
- Receipt is found with Apple ID
- default: Purchase in RC is migrated from 1234ABC to 5678DEF
Result: Device 5678DEF has access to Purchase, 1234ABC is revoked access
----------------------------------------------------------------------------------------
Scenario 3
Then, Tim
- clicks "Restore purchases"
- on Device ID 5678DEF
Effects:
- App calls restorePurchases
- ???
Result: ??? is an Alias created ???
----------------------------------------------------------------------------------------
Scenario 4
Then, Tim
- clicks "Restore purchases"
- on Device ID 1234ABC
Effects:
- App calls restorePurchases
- Receipt is found with Apple ID
- default: Purchase in RC is migrated from 5678DEF to 1234ABC
Result: Device 1234ABC has access to Purchase, 5678DEF is revoked access
Conclusions:
If I use the Device ID as a RevenueCat user ID, the user only will be able to use the unlocked purchases on one device at a time, even when logged in with the same Apple ID.
Is that correct?
What happens when calling restorePurchases on the device where the purchases already were restored using syncPurchases?
