Currently working on an iOS / Swift app.
Using Firebase, You can send an email verification to verify the email account.
I need to Edit the Email Verification.
I have searched and Found that I can Go to the Console / Authentication / Email Templates and Edit Email address Verification, Password Reset and Change Email.
My Problem is that on Email Verification Address, I can edit a lot of fields, but I Can`t Edit the Message Field. And I MUST edit it since it's not in my country language, I want to personalize it and change it to Spanish.
From what I can see, at the bottom of the page at Console/Authentication/Templates there is an edit tool that allows you to change the language of the authentication email.
As for changing the actual message itself, it is not allowed due to the fact that it could be abused for spam.
To prevent spamming, Firebase only allowed certain fields to be edited. Message body is not editable but it is template based on dynamic fields
Related
It is possible to use email verification with firebase but instead of sending a link they have to click, it should send a code like a sms verification code and i have to check in my ios app (swift based) if they match.
Email verification ensures that the user has access to the email address they claim. Setting an email address to verified by sending a text message is not the same, as you can't know from the receipt of the text message that they have access to the email address.
But as A. Welch commented, you can verify that the user has access to a specific phone number by using Firebase's phone number authentication as documented here: https://firebase.google.com/docs/auth/ios/phone-auth
If neither of those does precisely what you want, you can also roll your own. Send a text message or email with whatever information you want, and use the Firebase Admin SDK to update the user profile.
I'm working on a free iOS app; at the end of the registration (when the user has registered a good phone number and good email address) I want the user to enter a code which he has received on his phone or email.
But the problem is how to send automatically a SMS or an e-mail programmatically that contains the code?
I don't want the user to be redirected to a specific view controller to compose a message by himself (like with MFMessageComposeViewController or MFEmailComposeViewController)
just and only just the same appearance of SMS or email sent to users but with a different activation key (for the keys, I think about auto generated keys stored in a database).
And I think about the same way for forgotten identifiers, the user enter his email address or his phone number in a text field, and a message is automatically sent with the password and the username of the user, if the email address or the phone number entered is already existing in the database, if it is not, it shows an alert view with an error.
Does anyone have an idea for how to do this?
You can use the following services Parse.com + mailgun. Search on Parse.com for a tutorial using mailgun and it should accomplish what you are trying to do. On a side not, be careful when creating an app which does not allow the user to use it until they enter some access code, it is against the Apple rules and could lead to rejection.
I assume you have a server that generates this activation code that is sent to the user.
When the user enters the text field with the code he got it should be sent back to the server with an http request (use NSURLConnection ). The server should response to the http request with approval or error whether the code is right, or send the username and password and any other data the user needs to continue.
Im really new to iOS development, but I have some experience in OSX. I am trying to make an app where the users fills out text fields with information and then presses a submit button. The contents of the fields that they filled out are then automatically sent to me via an email.
I built a similar OSX application that could do this, but I cannot figure out how to do it on iOS.
I do not want to use the MessageUI.framework because, as far as I can tell, the user must press the send button after it brings up the email form. I just want it to send in the background.
I have no problem hardcoding in the email address and password, or using the same email for send and receive. ex: to: me#gmail.com from: me#gmail.com
Any pointers would be sweet!
You have two options if you do not want to show the mail composer window to the user
Use an SMTP Client for iOS like this one and send the email from your app with the email id and password hard-coded in the app. But if you want to change the email id or change the password in the future, you'll need to update the app. So this is a less desirable solution
Create a web script on your server which accepts the form fields to be submitted by the user. Then from this web script, send the email to your email id (for instance, if you use a PHP script, use the mail function to send the email). Call this script in the app using NSURLConnection.
You are going to need to make a custom form and then send all of the fields in the form as POST parameters to a custom API that you make on some server. Then you can just redirect that as an email to yourself through something like SMTP
Is it possible to retrieve the user email associated with the default email account directly from an app?
Screenshot:
Thanks.
I can't prove a negative, but I am fairly certain this is not possible. You can use MFMailComposeViewController to allow the user to send an email from the default account, but you cannot directly access information about the default account. If you need the user's email address, you either have to ask for them to type it in, or have them select it from their contacts.
In addition to #woz answer, this is a gist that can help you.
In my app, I have a feedback form to let users could get in touch with me. Unfortunately, many users had minor misspellings in their email addresses and I couldn't reach back to them.
As I couldn't get a perfect way to be sure the email was correct, I've developed the following gist which:
asserts the mail is a proper foo#bar.tld
verifies that the email is contained in the user's address book
if not, suggests the closest match
Again, this is far from perfect and I only included this behavior optionally (a little 'check mail' button next to the UITextField)
https://gist.github.com/dirtyhenry/7547064
I use custom screen with 'from' and 'to' email and textview fields to get feedback from users. So, is there any iOS api to auto fill 'from' field?
I would be seriously surprised if there were as its potentially a big security hole - if not caught by apple it could be used to harvest email addresses.
You can however invoke the email app to do something for you, as described in this other question. Here, the user is in control of whether to send the email or not, so is not a security issue.