kriskbx / whatsapp-sharing

whatsapp sharing button + generator

Home Page:http://kriskbx.github.io/whatsapp-sharing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS not work

nkuldip opened this issue · comments

When I try this on Iphone, it gives you the possible to select a contact, but there is nothing to share. It remains empty.

commented

Noone can help you without code to look at.
Read this first: https://github.com/kriskbx/whatsapp-sharing/blob/master/ISSUES.md

commented

This code doesn't help: this is regular PHP and it simply echos out a string somewhere, it's not related to the library in any way.
Have you integrated the library into your website? Then provide us with a link to your site or paste the resulting code into a jsfiddle or something. I'm interested in the actual button html element as well as the inclusion of the js-library.

Hello @kriskbx
Here is code

php_code

commented

Are you actually using the library? It seems like you don't, coz there are no data attributes and no classes on the a tag as it should be. If you want to use this particular library, then repeat all the installation steps here. If you dont't want to use the library and just want the url-scheme without any javascript overhead: make sure to encode your text and url with urlencode( $str );. One thing, though: your button will be displayed everywhere, even if the device doesn't support url-schemes or WhatsApp itself. So, in my opinion you should probably install this library.