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");
}
mdm-appconfig-plugin
1.0.1 • Public • PublishedDependencies (0)
Dev Dependencies (0)
Package Sidebar
Install
npm i mdm-appconfig-plugin
Weekly Downloads
1
Version
1.0.1
License
ISC
Unpacked Size
11.7 kB
Total Files
9