1.0.1 • Published 5 years ago

mdm-appconfig-plugin v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

How to include this plugin in a Ionic Project

  1. Copy this plugin code to the root folder of your project
  2. Run the command: ionic plugin add mdm-appconfig-plugin
  3. Note that this command will update the package.json file of your project
  4. Remember to include this folder and package.json in version control.
  5. Call the plugin APIs in the code. Note: This API will work only after ionicPlatform is ready.
  6. 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"); }