'Can we get unique transaction id from app store

I want to access transaction id or something unique id when the app is first purchased and downloaded from app store.

So that I can identify that user with that unique id, and send that id to my server.

Is this possible to get that from app store?



Solution 1:[1]

You can get a unique transaction ID from an In-App-Purchase, but not from the original download or app purchase from the iTunes App store. Neither of these identify the user. Apple's privacy policy may prevent them from ever giving you this information from their app store data.

Solution 2:[2]

Previously you would use the device id, but that is now deprecated by Apple. I would recommend you simply generate a new GUID when the app is first launched, store that in the user defaults, and use that.

There isn't any way to access transaction information from your app.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 hotpaw2
Solution 2 Mike Weller