Created
February 14, 2019 20:54
-
-
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"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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