pwa-bugs icon indicating copy to clipboard operation
pwa-bugs copied to clipboard

iOS 12 and "mailto:"

Open KingRial opened this issue 5 years ago • 0 comments

On iOS 12 when PWA is in "standalone" mode (installed) there is no way to correctly handle the "mailto:" link

<a href="mailto:[email protected]">test[dot]com</a>
<a href="mailto:[email protected]" target="_blank">test[dot]com</a<

The only workaround found is to add a click event handler similar to:

()=>{
    window.location.href = "mailto:[email protected]?subject=" + emailSubject + "&body=" + emailBody
    return
}

On iOS 13 the standard usage works correctly.

KingRial avatar Nov 20 '19 17:11 KingRial