Make a phone call in Windows Phone 8.1
NickName:robmikh Ask DateTime:2014-05-09T10:19:36

Make a phone call in Windows Phone 8.1

I'm writing a Universal App for Windows 8.1 / Windows Phone 8.1 that at some point displays a list of phone numbers. What I would like to do is allow the user to press one of these numbers and have the device call (or ask permission to call) that number if running on Windows Phone 8.1. I know this was previously possible in Windows Phone 8 by doing the following:

using Microsoft.Phone.Tasks;

PhoneCallTask phoneCallTask = new PhoneCallTask();

phoneCallTask.PhoneNumber = "2065550123";
phoneCallTask.DisplayName = "Gage";

phoneCallTask.Show();

NOTE: This code is wrapped in #if WINDOWS_PHONE_APP

However, when trying to import Microsoft.Phone.Tasks, Visual Studio is unable to find the reference. I know that "ID_CAP_PHONEDIALER" had to be enabled in WMAppManifest.xml in Windows Phone 8, but this doesn't seem to be possible with the universal app model. I've been searching around for a solution but can't find a recent one that includes Windows Phone 8.1 (not Silverlight).

Is there any way to make a phone call from within a universal app? Or is it simply not possible at the moment?

Copyright Notice:Content Author:「robmikh」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23555640/make-a-phone-call-in-windows-phone-8-1

More about “Make a phone call in Windows Phone 8.1” related questions

Make a phone call in Windows Phone 8.1

I'm writing a Universal App for Windows 8.1 / Windows Phone 8.1 that at some point displays a list of phone numbers. What I would like to do is allow the user to press one of these numbers and have...

Show Detail

Make a phone call in Windows 8.1

To make a phone call in Windows Phone 8.1 I have to do the following: Windows.ApplicationModel.Calls.ShowPhoneCallUI(number, name); But in Windows 8.1 app there is no class PhoneCallManager in Wi...

Show Detail

BingMapsTask on Windows Phone 8.1

On Windows Phone 8, we call phone's Bing map app with c# using BingMapsTask . But Windows Phone 8.1, BingMapsTask won't work? How to call Bing Maps on Windows Phone 8.1? Can anybody help?

Show Detail

Windows phone 8.1 SDK incoming call event

Is there any event to get incoming caller info in Windows phone 8.1 SDK? can we create application in windows phone 8.1 to get caller phone number while incoming call.

Show Detail

Upgradation of Windows phone 8 App to windows phone 8.1

We have created a net banking app last year for a bank. Now we are supposed to upgrade that app to Windows Phone 8.1. I know that windows phone 8 app will definitely run on Windows Phone 8.1. But I...

Show Detail

Windows 8.1 detect incoming phone call

How do I detect that there is an incoming phone call in a Javascript Windows 8.1 project? Note, I don't want to interfere with the phone call, I just want to stop the audio my app is currently play...

Show Detail

Make a phone call automatic in Windows phone 8.1 Runtime

I am developing an application to check a call function on Windows phone. I know of this method Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI("phone number", "display name"); It

Show Detail

Make a component transparent in WIndows Phone 8.1

I'm brand new in windows phone 8.1 and there were heaps changes in windows phone 8.1 compare to windows phone 8. How can I make a component, say Button, Grid, Tile to be transparent exactly like in...

Show Detail

Windows Phone 8.1 vs Windows Phone Silverlight 8.1 - is there missing documentation on MSDN?

I'm attempting to port some .NET code to a Windows Phone 8.1 (not Silverlight) library and have been banging my head against the wall for a while now trying to understand why System.Net.IPAddress w...

Show Detail

WP 8.1 Runtime code to make phone call, send SMS & send Email (not the Silverlight 8.1)

I'm writing an app which will make a phone call, send sms or email just like the People app in wp 8.1 . So far I've found a link form msdn which said "Applies to: Windows Phone 8 and Windows Phone

Show Detail