-2

How do i get IPhone IMEI?

UIDevice *myDevice = [UIDevice currentDevice];
NSString *identifier = myDevice.uniqueIdentifier;

This is the code i tried but isn't working.

2
  • I've removed the Visual Studio tag because this question is about code, and not about using the Visual Studio application. Commented Jun 8, 2021 at 12:31
  • 1
    That code appears to be Objective-C (or perhaps Swift? I'm not very familiar), not C#. Can you provide some more information about what you're doing? Are you using Xamarin? Commented Jun 8, 2021 at 12:32

1 Answer 1

1

Since iOS 7 Apple does not allow you to identify a device using IMEI any more.

You may have to use UDID instead.

1
  • Then how do i get the UDID?
    – The Buster
    Commented Jun 8, 2021 at 12:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.