user's AppleId programmatically in iphone

zohaibkhan picture zohaibkhan · Sep 23, 2014 · Viewed 15.8k times · Source

is this possible to get the user's apple id which is currently login to device? Actually I implemented inapp purchases and I get a device id and Apple id of the user when it purchase the app.

Answer

l0gg3r picture l0gg3r · Sep 23, 2014

No, it's not possible.
Instead of AppleId, you can use [[UIDevice currentDevice] identifierForVendor].