Sharing with WhatsApp only works with ANDROID systems? [duplicate]

1

I have HTML code to share site content in WhatsApp:

<a target="_blank" href="whatsapp://send?text=http://www.guaraparivirtual.com.br">Compartilhar</a>

But it only works on ANDROID when having it on the Iphone it does not run.

    
asked by anonymous 16.02.2016 / 19:40

1 answer

0

It works on IOS, I even did it on my site, you just need to fix that link that is wrong, take a look at my code:

<a href=whatsapp://send?text=Olha%20esse%20link%20http://www.guaraparivirtual.com.br>Compartilhar no WhatsApp</a>

The text of the call "look at this link" or another if it is to be used, should be placed before the shared link, because if it is then gives some errors in some devices. this is the whatsapp sharing code, I advise you to include in a conditional to only display if the device is "mobile", and if you want, you can use the SERVER_NAME and REQUEST_URI functions to insert the sharing link on all pages automatically. another tip is to use Google Analytics "Events" to map and track clicks and who comes from whatsapp to within your page.

    
16.02.2016 / 21:09