iOS 14 - How to open Default Mail App programmatically?

Viewed 3126

With iOS14 users can set different email client apps as their default.

Is there a way to open the selected default mail app programmatically?

Using mailto: URLs, after setting the default mail app to Gmail, don't do anything.

2 Answers

Apparently you have to add mailto to the LSApplicationQueriesSchemes to make it work.

Add following to info.plist

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>https</string>
    <string>http</string>
    <string>mailto</string>
</array>
Related