Checking programmatically if App Store is available in MDM environments

Hi,

is there a way to check programmatically if the App Store is disabled / enabled in MDM administrated environments?

I've tried

Storefront.current != nil

(yes, I know it's async, this is just for easy understanding), however I am not sure as I cannot test this in an MDM environment right now.

Checking programmatically if App Store is available in MDM environments
 
 
Q