Pawel Pabich
Pawel Pabich

Reputation: 2434

Mailto doesn't work when website launched from iOS home screen

I have a web app with bunch of mailto links.

E.g. href="mailto:?subject=pawel%20here!&body=Check%20out%20this%20new%20service%20called".

They work as expected on iPhone 6S iOS 12.2 when the web app is opened directly in Safari.

enter image description here

Unfortunately they don't work when I create a shortcut to the app on the home screen and launch the app from there.

enter image description here

Any ideas re wha's happening here?

Upvotes: 1

Views: 1098

Answers (3)

roberto magini
roberto magini

Reputation: 31

I found this solution:

<a href="#" onclick="window.location='mailto:[email protected]'; return false;" >Write an email</a>

It seems like if working fine to me.

Upvotes: 2

roberto magini
roberto magini

Reputation: 31

I noticed that if I add target="blank" it works if is launched from home screen, but it left an annoying blank page.

Upvotes: 0

Yervand Saribekyan
Yervand Saribekyan

Reputation: 502

You must set mail after mailto:
See this

Upvotes: -1

Related Questions