Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Let the user choose an e-mail client on iOS

We would like to give the ability to the user to choose any installed email client (Gmail, Yandex, etc.) in our app. But iOS provides only Mail or builtin MFMailComposeViewController. Is there any way to present a list of email clients to the user?

like image 460
demensdeum Avatar asked Jul 31 '17 12:07

demensdeum


2 Answers

There's no way to achieve this directly, as iOS doesn't know the concept of 'default application'. You could implement yourself a function which checks the various URLs used by different iOS email clients, and determines which clients are installed. For instance, GMail uses googlegmail://. You could also show a menu with the clients found on the device.

If you don't want to create your own implementation, ThirdPartyMailer is a library that can do this for you.

like image 114
Andrea Gottardo Avatar answered Oct 29 '22 13:10

Andrea Gottardo


If you're looking for something similar to the way Android handles it, then no it's not possible. Some email apps though might support a custom scheme - for example Gmail uses googlegmail:// (taken from this question).

like image 40
phi Avatar answered Oct 29 '22 13:10

phi