If I change the default mail iOS client into another one, UIApplication.shared.canOpenURL
returns false
. For default client this method returns true
.
But if I call UIApplication.shared.open
directly, a custom email client app opens correctly.
Does somebody know, what's is the problem? Is it a iOS bug? Or maybe I can detect email client using another way?
URL: mailto://some@email.com
You have to use LSApplicationQueriesSchemes
in Info.plist
.
Just add (or create) a new item mailto
for this property.