Emm App Config
This plugin provides information on EMM application configuration
Requires the Cordova plugin: cordova-plugin-emm-app-config
. For more info, please see the Cordova EMM App Config Plugin Docs.
https://github.com/oracle/cordova-plugin-emm-app-config
Stuck on a Cordova issue?
If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.
Installation#
- Capacitor
- Cordova
- Enterprise
$ npm install cordova-plugin-emm-app-config $ npm install @ionic-native/emm-app-config $ ionic cap sync
$ ionic cordova plugin add cordova-plugin-emm-app-config $ npm install @ionic-native/emm-app-config
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us
#
Supported Platforms- Android
- iOS
#
Usage#
ReactLearn more about using Ionic Native components in React
#
Angularimport { EmmAppConfig } from '@ionic-native/emm-app-config/ngx';
constructor(private readonly emmAppConfig: EmmAppConfig) { }
...
// Get all the values of the emm app configurationconst values = this.emmAppConfig.getValue();
// Get specific value of the emm app configurationconst value = this.emmAppConfig.getValue('serverUrl');
// Get an event every time the emm app config changesthis.emmAppConfig.registerChangedListener() .subscribe(() => console.log('App config changes'));