4 ms·
I thought about using navigator.share myself, but decided to go with the basic "Copy URL" button instead, as navigator.share is pretty useless on desktops and n
by input_sh 4mo ago
I thought about using navigator.share myself, but decided to go with the basic "Copy URL" button instead, as navigator.share is pretty useless on desktops and not supported across browsers on phones either (Android's Webview being the big one for my use case).
- rickstanley 4mo agoWhy not both? A small button with "Copy link" text to, well, copy the current URL and another that calls "native" share, if available. I don't find it to be too many options, but I would guess that perhaps "Copy link" would have more clicks than `navigator.share`.
- imoverclocked 4mo agoYou could switch between them depending on the browser. Desktop users are more likely to want an URL anyway, IMHO. FWIW: iOS has a "copy" option in the share popup.