Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

user's AppleId programmatically in iphone

Tags:

ios

apple-id

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.

like image 991
zohaibkhan Avatar asked Sep 23 '14 07:09

zohaibkhan


People also ask

Can app developers see my Apple ID?

Developers can never see your device ID and never your Apple ID. Thanks! I asked it because someone I know is an app developer and they asked me how I opened their app from the same device using multiple device IDs (I had reset the phone, and resetting gives you a new device ID).

How do I log into my Apple ID using Xcode?

Add your Apple ID account and assign the target to a team so Xcode can enable the Sign in with Apple capability with your provisioning profile. Choose a run destination from the scheme pop-up menu that you're signed into with an Apple ID and that uses Two-Factor Authentication.


2 Answers

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

like image 67
l0gg3r Avatar answered Sep 19 '22 09:09

l0gg3r


No, you can't. It's a privacy element like the UDID.

You can read more about this here : Privacy issue

But, if you want, you can use the identifierForVendor provided by Apple using this method :

[[UIDevice currentDevice] identifierForVendor]
like image 43
Kevin Machado Avatar answered Sep 23 '22 09:09

Kevin Machado