Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PhoneLineTransportDevice API no longer works on Windows 22H2

See original GitHub issue

Recently I discovered that starting Windows 11 22H2 (build 22621), PhoneLineTransportDevice API no longer works, which resulted in our app’s Calling feature no longer working.

The Calling feature currently relies on the PhoneLineTransportDevice API. The following is a brief description of how to use this API:

  1. Enumerate a PhoneLineTransportDevice using either the DeviceWatcher or DeviceInformation.
  2. Call PhoneLineTransportDevice.RegisterApp() to register the app with Windows for the associated PhoneLineTransportDevice.
  3. Call PhoneLineTransportDevice.ConnectAsync().
  4. Use PhoneLineWatcher to enumerate PhoneLine, similar to the DeviceWatcher.
  5. Call PhoneLine.Dial() Note: Microsoft’s Your Phone (now called Phone Link) uses the same mechanism to implement the Calling feature as of 2020, not sure for now.

However, after upgrading to Windows 11 22H2 (build 22621), calling PhoneLineTransportDevice.RegisterApp() either results in non-functional or throws a System.UnauthorizedAccessException, even though PhoneLineTransportDevice.RequestAccessAsync() returns “Allowed”.

I tested Phone Link on my PC and verified that it works without any issues. Therefore, I am not sure why our app is experiencing this problem.

I am seeking assistance in resolving this issue. If the PhoneLineTransportDevice API is no longer usable, I am open to suggestions for alternative solutions.

Issue Analytics

  • State:open
  • Created 6 months ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

abusaadpcommented, Apr 27, 2023

I contacted Microsoft and they said they were not aware of this issue. After checking they said there is some permission issue with this API in Windows 11 and they will resolve it soon. So we must wait for Microsoft to resolve this issue. Thats why this API is working for PhoneLink app as it may not have this permission issue.

abusaadpcommented, Apr 26, 2023

Has Microsoft made an official announcement that Bluetooth calling will not work in Windows 11? Or have they changed the API for Bluetooth calling?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · BestOwl/MyPhone
PhoneLineTransportDevice API no longer works on Windows 22H2 bug Something isn't working help wanted Extra attention is needed.
Read more >
Why PhoneLinetransportDevice throwing error?
I contacted Microsoft and they said they were not aware of this issue. After checking they said there is some permission issue with...
Read more >
PhoneLineTransportDevice Class
Represents the hardware device associated with a PhoneLine. Currently only supported for use with bluetooth devices.
Read more >
Bluetooth error after updating to 22H2
I updated my windows 11 to 22h2 lately, but after i update the system my bluetooth earbuds input suddenly wont register, when it...
Read more >
in PhoneLineTransportdevice(Windows.ApplicationModel. ...
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 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found