I have a mobile app in ios and android platforms. Our some customers are distributing it in mdm(many even use airwatch). Airwatch has some restriction payloads like: "Allow use of camera", "Allow screen capture", "Allow Biometric ID modification" etc.(these are ios/android device/user profiles restrictions) I want to take action in my mobile apps according to these payloads. For example there is an upload option with camera. I want to that if "Allow use of camera" is set as false, I want to not showing camera option.
Could track these payloads form ios and android apps? If yes, how to make it?
Thanks in advance.
Take a look at android.content.RestrictionsManager. getApplicationRestrictions() will return a Bundle of restrictions.
RestrictionsManager