1.0.1 • Published 5 years ago
mdm-appconfig-plugin v1.0.1
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"); }
1.0.1
5 years ago