'react email link click fire action depending on whether user has mail client installed
I wanna make an email link that has following behavior:
if user has email client installed on his device, i.e. thunderbird or outlook, I want the link to behave like a link with mailto href.
If user does not have email client installed, I want to copy email address to user's clipboard.
I understand that I have no access to user's FS so I can't possibly check if a user has email client installed but I wonder if there's an event for successfull "email client opened" action or maybe some kind of callback that has the result of trying to open mailing app.
So, is it possible to implement? If so, how do I implement it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
