-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhoneLineTransportDevice API no longer works on Windows 22H2 #26
Comments
Windows 10 22H2 also has this issue. |
New discovery on Windows 11 22H2: In UWP apps, |
I made a small UWP app to test this API. Here are the test results:
|
Found this method in public static unsafe bool TryUnlockPhoneLineTransportDeviceAPIs(IObjectReference _obj) Seems like Microsoft blocks this API on purpose🤔. |
Has Microsoft made an official announcement that Bluetooth calling will not work in Windows 11? Or have they changed the API for Bluetooth calling? |
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. |
Recently I got an email from Microsoft saying that this issue has been resolved but still the app is not working for me. The windows version has been updated to 23H2. Also even in the previous version of Windows namely 22H2 the bluetooth calling was working for the following apps.
So few of the apps bluetooth calling is working for 22H2 itself. Maybe there is some issue in our app. |
I have encountered such a problem. After compiling, packaging and installing, I can't make a phone call. When I press the dial key, the software will crash.😰 |
I can't use the dial-up call function normally in Windows10 22H2 and Windows11 23H2.😩 |
I try CallCenter (https://www.justremotephone.com/) and Intel Unison in 22H2, and both them worked fine. And i find that both them pair the phone in app, but not from OS. Maybe it is the reason of why PhoneLineTransportDevice.RegisterApp() throws a System.UnauthorizedAccessException, |
I tried paring the phone in-app, but still no luck. |
It looks like Thy Phone uses the same |
Still no luck after trying this. |
Is there any alternative solution to this API? ? ? |
Yes, there is a new API, but I can't find any documentation about this new API. |
Found an undocumented property |
Did you try this? https://learn.microsoft.com/en-us/uwp/api/windows.applicationmodel.activation.phonecallactivatedeventargs?view=winrt-22621 To use this API, your application needs to declare in its Package.appxmanifest file windows.phonecallactivation as a uap13:Extension category. Otherwise, the application won't be able to be activated to facilitate in-app call progress control UI. |
PhoneLineTransportDevice.RequestAccessAsync() now will always return "DeniedBySystem", Any solution? |
Has there been any progress on this? I'm having the same issue. I contacted Microsoft to request an access token for the API (as done in a previously posted gist https://gist.github.com/ADeltaX/285e017a1fefb0723b526246066b9f43), their response was "I investigated and this the PhoneLineTransportDevice API was removed from the LAF list and does not require a token.". So the token thing is not relevant anymore. |
I have made some progress regarding this issue:
One alternative to the API is building a kernel driver which implements HFP. The protocol in itself is not that complicated, but the routing of the audio is. The signaling part of the protocol can be done outside the kernel, but the opening of the audio channels appears to be. I also understood that getting a kernel driver approved for Windows is not easy and may even be expensive. |
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:
PhoneLineTransportDevice
using either theDeviceWatcher
orDeviceInformation
.PhoneLineTransportDevice.RegisterApp()
to register the app with Windows for the associated PhoneLineTransportDevice.PhoneLineTransportDevice.ConnectAsync()
.PhoneLineWatcher
to enumerate PhoneLine, similar to the DeviceWatcher.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 aSystem.UnauthorizedAccessException
, even thoughPhoneLineTransportDevice.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.
The text was updated successfully, but these errors were encountered: