Opening available email clients

I have a similar “magic link” flow as Slack has but I can’t figure out how they managed to have a button that opens the email client, not just that - they show the different email clients I have installed and even show which one is the default one (wow) - how do they do that?

Thanks :slight_smile:

Hi @nirpeled!

You can use the Linking api here:

In tandem with the canOpenUrl method from here:

The way this works under the hood: iOS’s URL Schemes (documented here):

Here’s a helpful tutorial style post you may like reading. It has code showing url strings to detect each of the major email clients :

Thanks dude, I’ll check it out :sunglasses:

Any idea if this technique could work on Android as well?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.