in PhoneLineTransportdevice(Windows.ApplicationModel.Calls) RequestAccessAsync() always throw denied by system.

Aryaveer Chaudhary 0 Reputation points
2023-04-26T09:51:20.12+00:00

I am creating an app like my phone in Windows so I found this library name Windows.ApplicationModel.Calls use Bluetooth to connect with a phone line(Android/ios) to make and receive calls from Windows but in this first we need to request access from the device to make calls whenever I try to request access from the device it always shows denied by the system . I read somewhere that it is only happening in the latest 22621 build but in the docs its clearly there that it supports Windows 11 22621.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,303 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,456 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 10,791 Reputation points Microsoft Vendor
    2023-04-27T02:14:59.6266667+00:00

    Hello @Aryaveer Chaudhary ,

    Welcome to Microsoft Q&A!

    The phoneLineTransportManagement capability is required to use PhoneLineTransportDevice APIs in the Windows.ApplicationModel.Calls namespace.

    This capability allows apps to manage system devices responsible for phone line connectivity.

    You can try to add phoneLineTransportManagement in Package.appxmanifest like this.

    <Package
      ...
    xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
      IgnorableNamespaces="uap mp rescap">
    ...
    <Capabilities>
        <rescap:Capability Name="phoneLineTransportManagement" />
    </Capabilities>
    

    Thank you,

    Junjie


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.