How to get iPhone phone number from a webapp? - ios

Is it possible to get the phone number or a unique ID identifying the phone from a WebApp on the iphone?

No, too large of a privacy/security issue.

Related

How does the My Verizon Mobile app know the device phone number?

I just installed the My Verizon Mobile app onto an iPhone and upon launch it was immediately able to display the device's phone number - something which is not possible for regular apps to do.
Does anybody know how it does it, could it be one of these, or something else?
As the app is from Verizon, Apple has granted it permission to access private iOS APIs to obtain the phone number
The App makes an HTTP connection to a Verizon server which goes through a gateway which is able to detect the phone number and sends it back to the device in the HTTP response.
These are just my guesses as to what perhaps could be happening, does anybody know what actually is happening?
If you go to Settings/General/About, you'll find an IMEI number and an ICCID number. The IMEI number identifies the phone, the ICCID number identifies the SIM card. If you have a Verizon phone account, then Verizon would have associated that ICCID number with a phone number. They must be able to do that, because otherwise how could Verizon ring your phone if I dial your number?
So what happens is Verizon using their own data, which they must have for your phone to function properly, to find the phone number associated with your SIM card. This should only work for Verizon phones (other phone companies should be able to find your phone number if you have a contract with them, but not if you are with Verizon).
By the way, if you go to Settings/Phone, the first thing my iPhone shows is "My Number".
The Verizon Mobile app, at least for android, carries special code apps in the rom. You cna verify this by taking a Verizon Galaxy Nexus and applying an alternate rom to it such as CM10. Without the special "carrier blobs" in the rom, Verizon "specialized apps", don't work.
This is not a bug per se -- non Verizon roms lack the special "carrier bits" but also like the carrier apps many people don't want on their Nexi. The reason you have no "auto login" on iPhones is because this carrier "app" doesn't exist in the Apple roms.

Is there an unofficial way to get the device phone number?

I would like to programatically get the device phone number (on iOS5 and iOS6).
Are there any unofficial ways for doing so?
Are there any private Core Telephony APIs or IOKit APIs that can be used for example?
And yes I do know my app won't be accepted in the AppStore
Private API
There is a private API to get phone number. Private API can't be submitted to AppStore, but it can be executed on jailed device.
NSString* CTSettingCopyMyPhoneNumber();
It returns phone number. And it's located in CoreTelephony
MDM
And actually, there is even a legal way of getting phone number. However, it's complicated. There is MDM protocol for iOS. One of the commands retrieves information about a device and this info includes phone number (and a lot of other device info).
Other notes
Also, you may be interested to read through these several questions:
Programmatically get own phone number in iOS
How can I get the phone number of my iPhone device?
You could start by searching in the private headers.

Change phone number programmatically

Is there a way in BlackBerry programmatically replace the phone number with the fake one, so when the SMS, which was sent from such a phone, will be received the recipient will see in 'from' field the faked number?
AFAIK its not possible. You can't show the faked number after receiving the SMS.
It is not possible. This kind of thing is against the security of the blackberry and we all know that blackberry provides very high level of security.

Get BlackBerry device phone number

In my application I want to retrive the device phone number. I used Phone.getDevicePhoneNumber(true)
It is working in the simulator, but when I test on the device it returns an empty string.
Is there any other option for getting the device phone number?
I am using jde 4.5.0.
The straightforward approach would be to ask the user to enter their phone number.
Phone.getDevicePhoneNumber(true) reads the number from the SIM card. The problem is the number isn't always on the SIM card. I've also seen cases where the wrong number is on the SIM card.
There is no guaranteed way to programmatically get the number. What I've done in the past is present the SIM card number to the user and asked them to correct/confirm it.

To get device sim number's ID in blackberry

In my application i want to retrive the device sim number's ID.
Help me,
Regards,
Sampath
SIMCardInfo.getIMSI();
SIMCardInfo

Resources