mdm-appconfig-plugin

1.0.1 • Public • Published

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");
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2

Package Sidebar

Install

npm i mdm-appconfig-plugin

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

11.7 kB

Total Files

9

Last publish

Collaborators

  • himank-shah