Hello, I am making an app where when i click on a button , i have to call the person using skype. When i run my code on my browser, it works and i can call the person but when i run the app on a mobile phone , it doesn’t work. Can someone help me please?
Hi, I just did it on Ionic 2
See below what you have to do :
HTML :
<a [href]=“skype”>Call
.ts file :
import { DomSanitizer } from ‘@angular/platform-browser’;
…
constructor(…, public sanitizer: DomSanitizer) {
this.skype = this.sanitizer.bypassSecurityTrustUrl(‘skype:’+skypeaddress+’?call’);
}
Add these lines to config.xml file :
and these lines to corresponding platforms/ios/project-info.plist document :
LSApplicationQueriesSchemes
I added this to config.xml <allow-intent href="skype:*" />
I added what you said in the .ts file.
As you can see from my screenshot, I can’t see your HTML code neither what you say to add in the config.xml file.
The result of what I did was exactly nothing. Nothing happens when you press the link.