mdm-appconfig-plugin
v1.0.1
Published
A Cordova plugin that reads the Configuration Properties For AFW and iOS for Airwatch or Intune
Downloads
3
Maintainers
Readme
How to include this plugin in a Ionic Project
Copy this plugin code to the root folder of your project
Run the command: ionic plugin add mdm-appconfig-plugin
Note that this command will update the package.json file of your project
Remember to include this folder and package.json in version control.
Call the plugin APIs in the code. Note: This API will work only after ionicPlatform is ready.
Example:
if (MdmAppConfig) { MdmAppConfig.getAppConfigurations(function(result) { var appConfigSettings = JSON.parse(result); userDetails.Sesa = appConfigSettings["firstname"]; userDetails.Firstname = appConfigSettings["lastname"]; userDetails.Uid = appConfigSettings["deviceid"]; }, function(){ console.log("getAppConfigurations failed."); }); } else { console.log("no MdmAppConfig"); }