Dan Fabulich
Dan Fabulich

Reputation: 39603

How do I get a user's email address (with permission) on iPhone?

Typing on iPhone is tedious; I'd like to prompt my users for their email address without requiring them to actually type it.

Ideally they'd receive a dialog saying: "This app would like to use your email address. Don't Allow / Allow"

If the user tapped "Allow," it would auto-fill their email address (the one they have configured in Mail.app) in a text field.

Is this possible?

Upvotes: 3

Views: 3217

Answers (2)

0xced
0xced

Reputation: 26583

Yes it is possible, have a look at ABGetMe for iOS. Note that you would have to write the allow/don’t allow dialog yourself. Also, make sure to read and understand the Limitations section of the README.

Upvotes: 1

Ben Zotto
Ben Zotto

Reputation: 71068

Nope. But you can load up the contact picker interface and ask the user to select themselves from it-- that's much more friendly than making them type it in.

More info here: http://developer.apple.com/iphone/library/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/200-QuickStart/QuickStart.html

Upvotes: 3

Related Questions