title: How does MDM in IOS really work?
body: <p>I'm going to attend a <code>MDM</code> project in <code>iOS</code> (client side) but after searching, I still don't know how <code>MDM</code> really works. Can anyone explain something for me?</p>
  
  <p><strong>Problem:</strong> </p>
  
  <p>My server needs to control the list of applications are installed on devices (install and remove app).</p>
  
  <p><strong>Expected Solution:</strong></p>
  
  <ul>
  <li>There need an app installed on devices which plays the role of client (MY APP).</li>
  <li>When needed, server will push a notification to client via Apple push notification server.</li>
  <li>After receiving notification, client app will connect to server to get server command (ex: installing app A) </li>
  <li>After getting command, MY APP automatically download A and install it.</li>
  </ul>
  
  <p><strong>My question: Is that the way MDM work?</strong> </p>
  
  <ul>
  <li><p>If yes, how MY APP can install another app when it has no right to do it (due to sandbox) and whether server can config the access right for an app on devices. If possible, anyone can give me an example of code for MDM client side to clear my stuff things?</p></li>
  <li><p>If no, it means that the server will be the one who install app A on device (instead of MY APP). In that case, how server can do that? </p></li>
  </ul>