Version: 1.4.20.0
Frequency: Consistently
Severity: Blocker - prevents from working on the project, prevents from releasing the product
Context:
In a toolbar panel, I want to load a list of installed packages. This is used to check for installed mission packs.
Bug description:
In the 2020 version, I can use the JS_LISTENER_CONTENTMANAGER
to retrieve a list of installed packages. Specifically, I rely on the class and functions defined in /JS/Services/ContentManager.js
.
In 2020, the method .onSetDownloadablePackages(callback)
successfully triggers the callback with the list of packages.
In the 2024 version, the listener no longer triggers the callback, and no errors are thrown or logged.
Is there an updated method or alternative approach to retrieve the list of installed or streamed packages—either via JS or WASM?
Repro steps:
Add the following code to a toolbar panel:
const contentManagerlistener = RegisterContentManagerListener();
contentManagerlistener.onSetDownloadablePackages( (_packages) => {
console.log("Package list:", _packages);
});
And include the content manager dependency in the HTML:
<script type="text/javascript" src="/JS/Services/ContentManager.js"></script>