0

My iOS app offers a feature to create a new web service account. Once the account has been created it has to be activated by clicking on a link within a confirmation mail.

Is it somehow possible to offer the user the option to switch to the mail app once he has completed the registration process?

Or in general: Is it possible to switch to app XY from within my own app?

Of course I know the MFMailComposeViewController but this is not about creating a new mail but about switching to the Mail app to receive the confirmation mail.

Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
  • Probably duplicate of: https://stackoverflow.com/questions/29206596/launch-mail-app-ios-from-my-own-app/ ? – Vladimir Oct 30 '18 at 16:17
  • Possible duplicate of [Launch Mail app (iOS) from my own app](https://stackoverflow.com/questions/29206596/launch-mail-app-ios-from-my-own-app) – Satish Oct 30 '18 at 18:17

1 Answers1

-1

you can do it after server reply's to you

   let mailURL = URL(string: "message://")!
   if UIApplication.shared.canOpenURL(mailURL) {
   UIApplication.shared.open(mailURL, options: [:], completionHandler: nil)
}
Ahmad Taalab
  • 205
  • 4
  • 16