How does MDM and MAM capabilities work on iOS. Do we need a third party client running on iOS devices to receive MDM/MAM commands from the https server. How does the enrollment happen and I am sure that iOS depends on push notifications to receive commands, so I am assuming that third party MDM client should be available on the device in spite iOS having inbuilt MDM agent running all the times. What's the difference between MDM/MAM for iOS.
MDM is device-level configuration for device control and security. MAM is the same thing but at the app level. The commonality is that each configuration element is delivered through a configuration payload defined by Apple. Check out https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html.
The best way to understand this ecosystem is just know what has to be done and the role each party plays:
Yes you're going to have the devices go through the enrollment process. For AirWatch there is an agent app that they run through to enroll.