I hope you'll can help me to find an issue to my problem.
I'm developping an application who should use WhatsApp. This application is using HTML5, CSS3 and Javascript. I am using this link to send an message with WhatsApp :
<a href="whatsapp://send?text=Test 1">
This link work perfectly when you use directly a browser but when I use PhoneGap I have a error like this :
net::ERR_UNKNOWN_URL_SCHEME
I have tested some issues but doesn't work. I have also checked the Documentation but nothing...
Can you help me please ?
Thanks
EDIT
Here is the solution to my problem (thanks to @jcesarmobile):
<access origin="whatsapp:*" launch-external="yes" />
Many thanks :)
First and more important, add this line to your config.xml
after use the code:
Edit for newer cordova versions:
Use
<allow-intent href="whatsapp:*" />
Old answer:
Add this line to your config.xml
Or use the social sharing plugin
https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin
this worked for phonegap IOS
for android.