@xVishera wrote:
Hello!
I'm building my first hybrid app with Ionic, but I'm getting some problems here!
I'm trying to implemente a href call to WhatsApp (on android) like this.
<a class="button button-clear button-large" ng-href="whatsapp://send?text=Hello%20World!"> <i class="icon ion-social-whatsapp t-green"></i> </a>
But, When I click on the link nothing happens!
I already added the whitelist plugin and set the compileProvider on my module like this.
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|chrome-extension|whatsapp|tel|file):/);
I've added those lines on my config.xml
<allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="whatsapp:*" />
If I try a call to href="tel: xxx" the app shows the phone uri correctly.
I'm using
Cordova 5.4.1
NodeJs 4.2.4
Ionic 1.7.12
cordova plug-ins:
console, contacts, device, dialogs, inappbrowser, network information, splashscreen, whitelist and ionic keyboard.Anyone know what I should do ?
Posts: 1
Participants: 1