I have a share button
on my webpage. I want tapping the button in mobile Safari to open the iOS native share modal.
How do I achieve this with HTML/Javascript?
I can see that the Wall Street Journal have been able to achieve this with the share buttons on their website. I have not been able to find any answers on Stack Overflow or Google.
You could try
navigator.share({
title: 'Your title',
text: 'Your text',
url: 'Your url to share'
})
on click on your link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With