Unique ID across devices for Apple ID

Hi.

There are several regarding UIDs, but none completely fulfils what I need.

My app has no user account system. So I believe (please confirm ?!), that any in-app purchase will be lost if the user deletes the app, and the app developer didn't implement some kind of technique to restore the in-app purchase.

What I am looking for:

  • UID must be identical across devices with same AppleID logged in.
  • UID must be retrievable after app is deleted for device.

I thought about fetching the UserRecordID from CloudKit, but not everybody has iCloud. Ok, a fallback would be possible.

Is there any mechanism foreseen to cover this situtaion?

Thanks,

The Medals are a form of in-App-purchase which are govern by rules provided by apple.

https:// support.apple.com/en-gb/HT202023

What is a consumable in-app purchase? You need to buy these items every time you want them, and you can't download them again for free. If you remove and reinstall an app or install an app on a new device, you might lose your consumable purchases. For example, if you install a game on your iPad that you started playing on your iPhone, the game levels will be synced but extra health you've bought on your iPhone won't be synced.

About sharing in-app purchases If you use Family Sharing, you may be able to share some subscriptions with family members. Consumable in-app purchases can't be shared.

Thanks for your answer.

I'm neither referring to consumable subscriptions, nor to Family sharing.

I'd like to use a UID in my app, which persists across devices for the same Apple ID. This should serve as substitute for my missing app's User Account. It would allow in-app purchase restore in case the app was deleted from the device.

iCloud/UserRecordID comes close to my requirements, but not everybody uses an iCloud account.

Unique ID across devices for Apple ID
 
 
Q