Ciao

vorrei inserire su un sito un link che dia la possibilità di conttatare un cliente con whatsapp (quindi vorrei che aprisse una conversazione da chi visita il sito su un numero di cellulare prefefinito)

ho inserito questo pulsante:

<a id="whatsappContact" href="whatsapp://app?abid=+XXXXXX" target="_blank" rel="alternate">Contattaci con whatsapp <img src="/SITE/INC/IMG/whatsapp.png" alt="Contattaci con whatsapp" /></a>

più questo script
<script>
var IS_IPAD = navigator.userAgent.match(/iPad/i) != null,
IS_IPHONE = !IS_IPAD && ((navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)),
IS_IOS = IS_IPAD || IS_IPHONE,
IS_ANDROID = !IS_IOS && navigator.userAgent.match(/android/i) != null,
IS_MOBILE = IS_IOS || IS_ANDROID;


var whatsappContact = document.getElementById('whatsappContact');
whatsappContact.style.display = 'none';

if( IS_IPHONE ) {

whatsappContact.href = 'whatsapp://app?abid=+XXXXX';
whatsappContact.style.display = 'initial';

}

if( IS_ANDROID ) {

whatsappContact.href = 'intent://send/+XXXXXX#Intent;scheme=smsto;package=com.whatsapp;a ction=android.intent.action.SENDTO;end';
whatsappContact.style.display = 'initial';

}
</script>

con l iphone ho testato e apre whatsapp ma non apre nessuna conversazione apre solo l'applicazione

che c'è di errato?

Grazie