cordova-plugin-ete-appconnect-config
v8.1.3
Published
This plugin allows your application to receive app-specific configuration from Core
Downloads
2
Maintainers
Readme
MobileIron AppConnect Plugin for Cordova/PhoneGap
Description
This plugin allows you to receive app-specific configuration from MobileIron Core.
Installation
Add the plugin to your project using the Cordova CLI:
cordova plugin add <plugin-directory>
Or using the PhoneGap CLI:
phonegap local plugin add <plugin-directory>
Usage
Set Config Handler
The method passed to setConfigHandler
will be triggered when new or updated configurations are available.
window.plugins.appconnect.requestConfig(
function (result) {
console.log(result);
console.log("window.plugins.appconnect.requestConfig");
},
function () {
console.log("failed set conf")
});
// Here is your next action
window.plugins.appconnect.setConfigHandler(
function (result) {
console.log(result);
console.log("window.plugins.appconnect.setConfigHandler");
},
function () {
console.log("failed set conf")
}
);
Supported Platforms
- Android (>= API Level 14 / Jelly Bean)