I am newer in iOS development.I got an email id of a person in textview then on click of this email id. I need to get information of email just like native mail in iOS.
For that you need to store or have information related to that email in your app. So when user would tap on your textview then you could check for condition that it should not be nil and email validation. As you have verified then you can fetch data from your app related to that email and show in a pop-up view.
You need to have information for email or fetch anyhow.
You can use delegate methods and in endediting you can check for condition that it should not be nil and email validation.
Related
So it seems like this question iOS - Send an email automatically (NOT from user's account) tackles this in Objective-C but I can't find an answer for Swift.
I am creating an app for the app store so ideally this needs to be compliant with Apple's privacy restrictions (I know they have issues sending emails/texts in the background)-
I need to have an email with a SET message body (As in nothing is editable by the user, its all pre programmed) sent from one of MY email addresses (not accessing the user's at all) to another of MY email addresses (again, pre set).
Ideally I don't want the user to see the email form or even know an email is being sent - when a button is clicked, the button already does 1 thing and I just want the email function to be called along with it. I know Apple doesn't allow email to be transparent to the user if being sent from their email address but as this is from one of my email addresses I can't see why I'd be violating anything.
I have looked but can't figure out how to do this in the BACKGROUND (not pulling up the mail form, etc).
In Swift, How can I send a set email from one of my email addresses to another of my email addresses in the background?
I'm using a MFMessageComposeViewController instance in my app. The user clicks a button and it is taken to MFMessageComposeViewController. The question I am asking myself is..do I need to ask user for the permission to access to text messages on phone? I really don't need that data stored in Messages App, but my app does provide a link to it.
You must not ask user for permision because you can't access nothing from messages. You just open a new message sheet and you can pre-fill it with a sender, a message, and a few images. Message does not send automatically, only user can send iy
I'm currently playing with the XMPPFramework for iOS and I had the idea to let users make their own profile, based on vCards. I've made a screen where they can enter some information, such as date of birth, first/last name etc. When they are done they press the 'save' button.
What I would like to do, is to letting know everyone that's subscribed to this user that his vCard changed but I'm not sure how to do this. I've already tried to send a vcard-temp:x:update stanza but the message didn't arrive on my other device I'm testing with.
Does anyone know how I could do this and which method I could use?
You cannot know about vCard changes,
You can only know about photo updates via XEP: 0153
This xep uses the presence to send the photo there.
I have created an iphone app that allows the user to send an email using MFMailComposeViewController. I know that when the email is sent a copy is kelp in the "Sent" emails of the email client. What I wanted to do was also save that data/information to a text file on the iphone (as a log file). I can't find how to access the email information (recipient, body, etc) so as to input into the text file. Can this be done?
Thanks in advance for your help
No it can't be done in that you can't access the user's emails.
Your app can log when you present a MFMailComposeViewController and what data your app filled it in with before it was presented to the user. But you won't know if they changed it.
You dont have access to the email text in MFMailComposer class. What you can do is, create a view to capture to, cc, subject and message and then launch MFMailComposer delegate and prepopulate all the captured data. The user still has to submit the mail and could change the text all together. The captured data can then be stored within the app.
I would like to place an email in the iPhones email outbox, without showing the compose window to the user, so that he can not mess with the data that I want to send. Is this possible?
Thanks,
Timo
No - if you want to send an email using the user's email account you must allow them to modify the message contents: that's part of Apple's message framework. To be honest, it's a fairly sensible feature...I don't think many people would want an app that could just send things out without alerting the user or allowing them to modify it.
If you want to send a message and stop the user from messing with your data, just add an attachment and check for the attachment on the backend (assuming that because you want to send specific data)