How to get the telephone number from iphone?

420 views
Skip to first unread message

Simon Kok

unread,
Apr 10, 2010, 8:32:39 AM4/10/10
to phon...@googlegroups.com
Hi there.

I'm working on a software registration process where I need to get the telephone number from the iphone itself.

How would I accomplish that?

-- Simon.

steveg

unread,
Apr 11, 2010, 10:58:16 AM4/11/10
to phonegap
> How would I accomplish that?

Provide a field labelled "Telephone number" so that the user can type
it in.

Apple don't provide a way to bypass the user and extract their phone
number, I assume because it could easily be abused.

Steve

mobile_alf

unread,
Apr 11, 2010, 3:35:26 PM4/11/10
to phonegap
I had the same issue, and the usability is somewhat garbage if you ask
the user to retype the phone number,
at least for my application, I did not want it. The work around
(convoluted) was this in my case
For the registration, I pushed the user to a WAP (Mobile web site)
based on the browser header, you do get the
sub_ID from the carrier. It is part of the WAP header. The sub id
can be cross referenced to look up the
phone number. Many SMS aggregators offer this as a third party API
to you. I used my aggregators API
to look up the Phone number, having submitted Sub_ID. Also I get
back the carrier ID and some other little
tid bits...

All this makes for a very streamlined reg process.

> > -- Simon.- Hide quoted text -
>
> - Show quoted text -

Alfred Dorkalam

unread,
Apr 11, 2010, 11:01:31 AM4/11/10
to steveg, phonegap
I achieved the same, by passing them to an external web page to complete the registration. When the user lands on my mobile web page, I read the browser header / device class etc. I also get the sub_ID. I submit the sub_ID to the SMSC and get back the phone number.

Very convoluted, but works ;)

Steve

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com

To unsubscribe, reply using "remove me" as the subject.

Reply all
Reply to author
Forward
0 new messages