Make Skype Call

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?

<a class="button button-call " ng-href="skype:{{employee.skype}}?call">Call</a>

Even i have the same problem, can anyone help me come out of that???

add this to config.xml
<plugin name="cordova-plugin-whitelist" version="1" /> <allow-intent href="skype:*" />

it worked for me :slight_smile:

1 Like

In mobile it works??

Yes , it works on both brower and mobile

Did you try this with Ionic 2?

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

skype

1 Like

Hi, I have the same problem also. I did add the

<plugin name="cordova-plugin-whitelist" version="1" /> <allow-intent href="skype:*" />

in the config.xml but it doesnt work for me… it does nothing. What else did you do to make it work? please help me.

Any chance you could state your solution again? There seems to be some strange formating and thus some info is missing. Thanks!

Hi, could you send me more details ? (any error message ?)

It’s really about the way your answer is being presented. I see it like this: http://prntscr.com/e35cbc

Isn’t there some info missing?

Did you add these lines ? If yes, did you get any error message ?

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.

Hi,
On which platform did you try this code ? (iOS or Android).
For iOS, could you copy/paste xCode console ?

Android and browser. But what I would like to know it’s about the missing pieces in your original message if you still know them.

  • What should I put in the html?

  • “this.skype” is of type any?

  • Should I just do href={{skype}}?

  • What lines are you adding to config.xml? There’s only blank text in that area of your solution. These ones?

<plugin name="cordova-plugin-whitelist" version="1" />
<allow-intent href="skype:*" />