title: Check if MDM server is connected
body: <p>We have an app that needs to read from <code>com.apple.configuration.managed</code> when it is installed from our MDM server, JAMF. This works perfectly fine.</p>
  
  <p>The problem scenario is:</p>
  
  <p>The data MDM data persists if a user downloads the app from JAMF, uninstalls, then reinstalls from TestFlight or the AppStore. When the user reinstalls from TestFlight or the AppStore, the app still reads the old data from <code>com.apple.configuration.managed</code>.</p>
  
  <p>Is there a way to check if the device is actually connected to an MDM server? That way it won't read from the configuration profile if it's not</p>