Can any one tell in case of device path of info plist,& where our own phone number is stored ?
You can ref to this post for the answer.
Programmatically get own phone number in iOS
Not sure why you need the Info.plist. You probably don't want to be accessing anything of that sort at runtime. It is indeed possible to retrieve the phone number from NSUserDefaults, but I recommend that you just ask the user to select his own contact, or even just enter in his own phone number. That's a little bit less surprising and scary, security-wise.
Related
I seen a website month ago that shows the general info of an iDevice, of them, it's type/ios version..etc
but i currently cant find it anymore, does anyone know what else can do the same process ?
You can define the device type on your developer's account page in "Certificates, Identifiers & Profiles" section. Unfortunately it contains only a small thumbnail of the device and also may include model's serial number (but not always)
To get device information, such as the UDID, you can use this:
[[UIDevice currentDevice] uniqueIdentifier];
If you want other information, such as orientation, system version, system name, etc, then just change uniqueIdentifier to the value you want. If you hold down option + esc or look at the link lawicko posted, then you can see some of your extra options.
Are you talking about the UDID or the Serial number?
The UDID is basically a SH1 hash of the serial number, ECID, wifiMAC, and the bluetoothMAC.
There is no public database of UDID's, so I doubt what you are refering to has to do with UDIDs.
If it involves the device's serial number, you can make reference to the site below:
https://selfsolve.apple.com/agreementWarrantyDynamic.do
My app uses an internet connection. I think I need to set the UIRequiredDeviceCapabilities in the plist with some sort of wifi/cellular property.
Does anyone know the correct keys I need to add?
Thanks in advance.
Sounds like you might be after the "UIRequiresPersistentWiFi" key.
See the Information Property List Key Reference document for the full list of keys.
Reference this tech document
http://developer.apple.com/library/ios/#qa/qa2010/qa1397.html
This should be done in code. Look at the Reachability.h libraries. As far as I know all the iOS devices have WiFi so this would be a pointless key.
All current (and past) shipping iOS devices have internet capability. So no such key exists.
Whether the user has turned one or more of them on is something an installed app has to determine at run-time.
Is it anyway possible to tag certain phone numbers on your iPhone as high priority numbers, and then filter them out to perform some actions on them?.. e.g. allowing calls from these numbers to come through even when the ringer is off.
Does Apple even provide the dev access to phone api's to allow this sort of work?
No apple does not provide access to this information, therefore its not possible while still having a hope that your app will be accepted to the store.
jailbroken+ private APIs= impossible is nothing
I would like to pre-populate a UITextfield with the phone number of the current iPhone device. Can that be done?
I doubt it and I certainly hope not. Imagine that I download an app and it automatically transmits my phone number to a remote server.
Actually it looks like it might be/have been possible: http://www.alexcurylo.com/blog/2008/11/15/snippet-phone-number/
hmm just found this post. The answer is that it can be done but we are not supposed to do it...
Programmatically get own phone number in iOS
tnx for reading
It's possible but it's not going to be approved for App Store if you do it.
I know each iPhone has a electronic identifier other than the phone # or ESN - how do I call it and what does it return?
The UIDevice class contains the information you need.
[[UIDevice currentDevice] uniqueIdentifier]
If you need security, then you probably can't use the device's built-in unique identifier, because one could easily spoof this information. I'm just guessing here, but, most likely, from your server's perspective there's an incoming connection/request that contains the phone's ID. Now, how can you be really sure the connection/request is actually coming from the iPhone with that ID?
One solution is to issue each new device that connects to your server with a unique ID of your own in a secure way (i.e., the ID can't be obtained by a third party). You then need to use a secure protocol whereby a connection/request proves to your server that it originated from a device that knows the above ID.
if you are writing a web app, why don't you use standard cookies?