Skip to content

Instantly share code, notes, and snippets.

@imelgrat
Created February 14, 2019 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imelgrat/e238925cbe528e866caee28b847d3aa1 to your computer and use it in GitHub Desktop.
Save imelgrat/e238925cbe528e866caee28b847d3aa1 to your computer and use it in GitHub Desktop.
AppConfig and Cordova: Getting EMM configuration data with the "Cordova Plugin for EMM App Config"
/**
* AppConfig and Cordova.
*
* Getting EMM configuration data with the "Cordova Plugin for EMM App Config".
* Callback for "deviceready" event.
*
* @link https://imelgrat.me/phonegap/appconfig-cordova-emm/
* @author Iván Melgrati.
*/
function onDeviceReady() {
console.log(cordova.plugins.EmmAppConfig.getValue("serverURL"));
}
document.addEventListener("deviceready", onDeviceReady, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment