Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.