Marcelo
Marcelo

Reputation: 2095

How to programmatically launch Skype in Windows Phone?

Putting directly: Assuming that I've Skype already installed in my OS, how can I launch a dialer from my app, with a given phone number passed as a parameter, from a Windows Phone? Thanks in advance.

Upvotes: 4

Views: 2479

Answers (3)

Claus Jørgensen
Claus Jørgensen

Reputation: 26347

As of last October 2014, the 2.24 release support Skype Uri's, and you can now launch Skype on Windows Phone 8.1 with skype://12345678?call as uri (with 1234678 being the phone number)

See http://msdn.microsoft.com/en-us/library/office/dn745878(v=office.15).aspx for some documentation on the syntax.

(Disclaimer: I work on the Skype for Windows Phone team)

Upvotes: 6

Scott Nimrod
Scott Nimrod

Reputation: 11595

Skype API for WinJS provides some documentation.

Sadly, the examples are in JavaScript.

Here's the initial syntax:

await Windows.System.Launcher.LaunchUriAsync(new Uri("skype:"));

Calling somebody would look something like this: Example: One-to-one dialog

await Windows.System.Launcher.LaunchUriAsync(new Uri("skype:skype.test.user.1?call"));

However, I'm not aware on how to retrieve Skype contacts within another application. This can be done with contacts on the people hub app.

See an app example here.

Upvotes: 1

JedH
JedH

Reputation: 124

I don't believe you can. With Windows Phone you can use launchers which launch a predefined set of OS installed apps such as e-mail, maps, etc.

The closest you can get is using the phone call task.

Check: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769550(v=vs.105).aspx

Hope that helps. Inter-app communication isn't really there yet.

// Jed

Upvotes: 2

Related Questions