IMEI number using iphone code [duplicate] - iphone

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to get IMEI on iPhone?
how can i get IMEI code from iphone simulator?

You can't. It's not something you can do with the iPhone SDK.
You can get the iPhone/iPod's Unique Device Identifier (UDID), but not the IMEI, Serial or phone number.

As others stated - you cannot get IMEI through public API. If you want to obtain some device identifier to use in your application you must use uniqueIdentifier property defined in UIDevice class - it is there for exactly that purpose.
NSString* uniqueID = [UIDevice currentDevice].uniqueIdentifier;
FYI, you can obtain IMEI using private frameworks - see this question, but your app will be rejected from app store then.

IMEI is an HW code of each phone. You can get phones' IMEI typing: *#06*.
In iPhone simulator there is no IMEI.

I'm not sure that it's possible - besides which, Apple will moan if you publish software which does that on the AppStore...

Related

Get UDID through my iPhone Application in iOS 7.0 [duplicate]

This question already has answers here:
UIDevice uniqueIdentifier deprecated - What to do now?
(32 answers)
How to get Device UDID in programmatically in iOS7?
(10 answers)
Closed 8 years ago.
I have created the application for getting the UDID few moths ago, its working fine for iOS 6 but iOS 7.0 is not provide, for getting the UDID from the iOS7.0 device i saw some mobileconfig kind of thing will work. But I am not getting right to do this.
thanks in Advance.
See this for an alternative. UDID is now deprecated and will result in rejection.
An alternative to the device UDID - preparing ourselves
UDID is no longer available in iOS 6+ due to security / privacy reasons.
Alternative solution: see this link.
Try This:
[[[UIDevice currentDevice] identifierForVendor] UUIDString];

How to get the IMEI in iPhone 4S programmatically? [duplicate]

This question already has answers here:
Finding IMEI number using Objective-C [duplicate]
(5 answers)
Closed 5 years ago.
I need to get imei on iPhones.
I use https://github.com/erica/uidevice-extension/blob/master/UIDevice-IOKitExtensions.m to get IMEI.
It works fine on iphone 4, 3GS ... even with ios5.
But with iPhone 4S, imei is empty. Does somebody have a solution ?
Thank you for your answer
If you have backup of that iPhone in iTunes, you need to
go to Preferences >> Dvices, and the if you hover the
backup you should see not only IMEI number but also
Serial number and Mobile number.
You can check if that IMEI or Serial number are coreckt
on this website: http://sndeep.info/en
Check when your iPhone was activated on this Apple web services:
https://selfsolve.apple.com/agreementWarrantyDynamic.do
You can easily get the IMEI by looking at the SIM card placement slot:
It should be there for the following devices:
iPhone 7
iPhone 7 Plus
iPhone 6s
iPhone 6s Plus
iPhone 3G
iPhone 3GS
iPhone 4 (modello GSM)
iPhone 4s
Source: Apple Official Documentation.
x#06# is used for all phones. İphone 4/4s for on
you can check imei by dialing *#06# thats it

Is it possible to get to installed app list on iPhone device [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
get list of installed applications on iphone objective-c
Is it possible to get to installed app list on iPhone device.. if possible
how can i get applications list that are installed in iPhone
thanks,
No you can not do this with public api. You could create a list of url schemes and test if the app can open them but some apps does not have url schemes.
No it is not. Because it is handled by apple's private api's. Well this can be tried on Jailbroken devices anyways.
Anyways, you can check if a specific application is installed on device using appdelegate's canopenurl method. That will take the URL of the method & if it is there in app you can open that application via your application.
Hope it helps.

How to get imei on iPhone 4S? [duplicate]

This question already has answers here:
Finding IMEI number using Objective-C [duplicate]
(5 answers)
Closed 5 years ago.
I need to get imei on iPhones.
I use https://github.com/erica/uidevice-extension/blob/master/UIDevice-IOKitExtensions.m to get IMEI.
It works fine on iphone 4, 3GS ... even with ios5.
But with iPhone 4S, imei is empty. Does somebody have a solution ?
Thank you for your answer
If you have backup of that iPhone in iTunes, you need to
go to Preferences >> Dvices, and the if you hover the
backup you should see not only IMEI number but also
Serial number and Mobile number.
You can check if that IMEI or Serial number are coreckt
on this website: http://sndeep.info/en
Check when your iPhone was activated on this Apple web services:
https://selfsolve.apple.com/agreementWarrantyDynamic.do
You can easily get the IMEI by looking at the SIM card placement slot:
It should be there for the following devices:
iPhone 7
iPhone 7 Plus
iPhone 6s
iPhone 6s Plus
iPhone 3G
iPhone 3GS
iPhone 4 (modello GSM)
iPhone 4s
Source: Apple Official Documentation.
x#06# is used for all phones. İphone 4/4s for on
you can check imei by dialing *#06# thats it

Prevent an iPhone app from running on iPad [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Prevent iPhone app to run on iPad
Is it possible to prevent my iPhone app from running on an iPad, not even the X2 version.
Thanks
Here is Article about how Prevent iPhone app to run on iPad
Use UIDevice's model method to get device name in string.
NSString* deviceType= [[UIDevice currentDevice] model];
Possible examples of model strings are #”iPhone” and #”iPod touch”.
So you could get the model name in the starting of the application and could show the appropriate popup for showing like "Currently No supporting the iPad" and exit from the application.
In the plist settings, add Application requires iPhone environment and set the boolean to YES