Skip to main content
Version: v5

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?

Don't waste precious time on plugin issues.

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

$ npm install cordova-plugin-emm-app-config 
$ npm install @awesome-cordova-plugins/emm-app-config
$ ionic cap sync

Supported Platforms

  • Android
  • iOS

Usage

React

Learn more about using Ionic Native components in React

Angular

import { EmmAppConfig } from '@awesome-cordova-plugins/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'));