I am developing an app where I need to verify that the entered email in a textfield belongs to the person who typed it in. When the user hits the verify button, I want to send an email to the entered email containing a generated code(e.g. CJ8z9). After this, the screen should change to a new textfield where the user is allowed to enter a code(they get the code from their email account outside the app, if the account belonged to them).
From my understanding from the documentation of Message UI framework, it is only capable of sending an email if the mail app is setup and the user will always be able to view the contents of the email (and hence the code). Also, they must press send manually? Am I correct in my understanding of Message UI?
If so, it defeats the purpose of authenticating the email for my app. Can the above scenario be done in swiftUI without using a server? Is there any clever way to get around it?
From my understanding from the documentation of Message UI framework, it is only capable of sending an email if the mail app is setup and the user will always be able to view the contents of the email (and hence the code). Also, they must press send manually? Am I correct in my understanding of Message UI?
If so, it defeats the purpose of authenticating the email for my app. Can the above scenario be done in swiftUI without using a server? Is there any clever way to get around it?