I want to pin my application to the taskbar. I followed the steps here, obtained my LAF keys from Microsoft, and now I am trying to implement the feature. Not sure if the LAF keys are bound to a specific application name have other restrictions.
I attempted to use two different functions (both C++ and C#), one from Chromium and one from Microsoft samples. For both, I receive a "Feature not available" message when calling the Status/getStatus
function.
My C# code is as follows:
public static readonly string Feature = "com.microsoft.windows.taskbar.pin";
public static readonly string Token = <token1 received from MS>;
public static readonly string Attestation = "
<token2 received from MS> has registered their use of com.microsoft.windows.taskbar.pin with Microsoft and agrees to the terms of use.";
I want to note that for the Microsoft samples, I used the packaged versions, as the unpackaged ones do not work due to this bug.
I tested it on two computers, one with Win10 build 19045 and the other with Win11 24H2, and I get the same result. Is there a way to make it work or at least understand why the status is always "unavailable"?