heiseonline / shariff

👮 Shariff enables website users to share their favorite content without compromising their privacy.
http://ct.de/-2467514
MIT License
1.4k stars 177 forks source link

WhatsApp doesn't open #352

Closed silas229 closed 4 years ago

silas229 commented 5 years ago

When I click on my smartphone on the WhatsApp share button with WhatsApp installed, it won't open. Screenshot:

silas229 commented 5 years ago

Maybe the link must point to wa.me: https://faq.whatsapp.com/en/android/26000030/

richard67 commented 5 years ago

@silas229 No, the link you refer to is something else. It sais it is about sending messages to people without knowing their phone number.

Furthermore, I can't reproduce your issue with Android 6.0.1 on a Samsung Galaxy S5 mini. When I touch the Whatsapp button in the 2nd example of the Shariff demo page, Whatsapp opens and wants me to select a contact to send the link to, including an option at the top to send to all my contacts.

Maybe you can post some version info here about your Android and WhatsApp and browser and which kind of phone you use, so other visitors here who have suitable equipment could try to reproduce your issue?

whatsapp://send?text= still seems to be the valid sharing method for WhatsApp, at least https://github.com/vinkla/shareable-links/blob/master/README.md, which is my favourite source for sharing links, still sais so.

philwolstenholme commented 5 years ago

The link @silas229 posted (or the general version here) is correct:

To create a link with just a pre-filled message, use https://wa.me/?text=urlencodedtext

Example:https://wa.me/?text=I'm%20inquiring%20about%20the%20apartment%20listing

Using the https://wa.me URL means that the sharing link will work on mobile devices and in a desktop web browser

richard67 commented 4 years ago

Will be fixed by pull request #381 ,