How do I get a user's email address (with permission) on iPhone? - 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?

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

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.

Related

Flutter: How to get the users address from contacts

I've guessed the Users Address from their GPS, looking up their location using Google's Places, but the output of that is pretty variable (no locality oftentimes, outside cities a consistent locality field would be helpful to my app). The thing is I do NEED the users home address for my app to work, but they may not be at home when they download the app.
I'd prefer to get their address from contacts. I've looked at a couple of Flutter plugins for accessing the address book, flutter_contacts, etc., but I can't see how you simply get the users details. So how do I request the Users HOME address, HOME email, MOBILE phone, whatever I can get from the device? Age might actually be beneficial too, so I could pivot the app to the needs of those who are using it.
I feel this is such a commonly useful thing it should have its own special permission, rather than the blunt one of exposing their entire contacts address book. So is there a better way of doing it? Less invasive so the user can more easily consent?
There's a special contact called "Profile" that contains the user's details if they bothered to add them on their phones, but in most cases it'll be empty, and anyway, accessing the user's profile requires the "Read Contacts" permission.
It'll be strange to ask the user for the "Read contacts" permission without they understanding why on earth would your app require such a permission "to guess your address" is not a very good reason.
And I suppose might cause some users to uninstall and/or flag your app as potential spyware.
If you app relies on having the user's address, you should instead simply pop a dialog with a question to the user to fill out their address manually.

send an SMS to a specific mobile number automatically after recieving an e-mail from a specific sender and subject

Using O365, i want to be able to send an SMS to a specific mobile number automatically after recieving an e-mail from a specific sender with a specific subject.
What is the best way to do this?
First, you need to set up the mobile number as so:
Open Outlook Web Access in your browser. The standard address is usually: https://mail.yourcompanydomain.com/owa. It’s important to note that you need to go to Outlook Web Access.
Log in using your Office 365 username and password.
Select Options – located in the top-right of the window – followed by See All Options.
Click Phone from the list on the left side of the window and then Text Messaging.
Pressing Turn on Notifications, selecting your Locale: and finally your Mobile Operator.
Press Next and enter your phone number with the area code, and without the country code.
Click Next again and check your phone. You should get a pass code in a text message that you will need to enter. After you receive this, press Finish.
Now you are ready to set up email notifications using an Inbox rule Those rules are based on your criteria, whether based on sender or content :)

Is it possible to get listed registered email accounts on iOS?

There is a form in my App, and I want to make it easier to user to fill out the form. Can I get the registered email accounts on Email App and ask user to choose one to use for my form?
You can set auto-correction to "on" and the keyboard type to "email" in the text view properties. In this case when the user begins to type his email address the system offers its own address as an auto-correction tooltip. That's all what you can do with this.

display email inbox?

is there an option that I could retrieve from my app the latest 10 email subjects from my ipad email inbox.
I would like to display the user his last 10 subjects in my new app.
Any Ideas if this is possible and how?
best
chris
No, it's not. Apple doesn't allow access to most user data that's handled by the built-in native software, and even then generally not without the user explicitly giving the app access (such as in an address book picker).

How to run my programm to process email attachment of specified type on iPhone OS

I need to run my iPhone application when user gets email with attachment of specified type and process it. For example "some.jpg". How?
You're not going to be able to take over a basic file type like this on the iPhone. The closest you can come is to implement your own custom URL scheme, which would let you have your application be launched in the same sorts of circumstances if you're the one sending the email...
What this means is that you could make it so an email link like
myspecialimage://mycoolserver.com/some.jpg
launches your special application when a user clicks in.
See this link or the Apple documentation for guidance.