Search docs/

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.

Contact Us Today!

Installation

ionic cordova plugin add cordova-plugin-emm-app-confignpm install @ionic-native/emm-app-config
Ionic Native 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

import { EmmAppConfig } from '@ionic-native/emm-app-config/ngx';

constructor(private readonly emmAppConfig: EmmAppConfig) {}

...

// Get all the values of the emm app configuration
const values = this.emmAppConfig.getValue();

// Get specific value of the emm app configuration
const value = this.emmAppConfig.getValue('serverUrl');

// Get an event every time the emm app config changes
this.emmAppConfig.registerChangedListener().subscribe(() => console.log('App config changes'));