I have made a web-view of a website. Now I want to share some data from my web-view to whatsapp app. I was able to open whatsapp web, but my client wants me to open whatsapp application instead of whatsapp web. How can I do that?
This is what I have done to open whatsapp web in my site:
<a class="social-icon whatsapp"
href="javascript:popWin('https://api.whatsapp.com/send?text=Product%20Name:-<?php echo $productName; ?>.%20Product%20link:-<?php echo $productUrl; ?>', 'whatsapp', 'width=640, height=480, left=0, top=0, location=no, status=yes, scrollbars=yes, resizable=yes');"
title="<?php echo $this->__('Share on Whatsapp') ?>"
data-action="share/whatsapp/share">
<span><i class="fa fa-whatsapp"></i></span>
</a>
You can use, its working for me:
Option First-
<a href="whatsapp://send?text=Hello friend!" data-action="share/whatsapp/share">Share</a>
Option Second-
<a href="https://api.whatsapp.com/send?text=Hello friend!" data-action="share/whatsapp/share">Share</a>
Both options are working for me..
If not working to your side then please update android version of your mobile phone & also update whatsapp version