How to dynamically check if an app is enabled?

Hi guys,

I have a parent/child app setup where I have tested several versions of some child apps and then disabled the old test versions.

The parent retrieves its child apps using:

getChildApps()

When I iterate over the returned apps, disabled child apps are included as well.

I would like the parent to dynamically determine which child apps are enabled, so that disabled apps can be excluded from an initialization sequence.

I have tried checking:

childApp.disabled

but it returns null, including for child apps that are definitely disabled in the Hubitat UI.

Is there a supported way for a parent app to determine whether an InstalledAppWrapper returned by getChildApps() is enabled or disabled?

Cheers

http://127.0.0.1:8080/installedapp/statusJson/<application id> if on the same hub. This will bring back a JSON string, look for the key named disabled.