-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console.info not defined #308
Comments
Hi @MrGreen7
What device/os/version are you working on? |
@timkim I get the same problem with latest Android app, running on Nexus4 4.4.3.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="app.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="appPrint.css" media="print"/>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="appPolyfills.js"></script>
<script type="text/javascript" src="appLibs.js"></script>
<script type="text/javascript" src="app.js"></script>
<title>Stample mobile app</title>
</head>
<body>
<script>
console.log("BEFORE: debug is defined="+!!console.debug);
var stampleApp = require("app");
var username = "xxx";
var password = "yyy";
function getBootstrapDataPromise() {
return stampleApp.exports.apiAuthenticator.authenticate(username,password).then(function() {
return stampleApp.exports.userRepository.getBootstrapData();
});
}
function onDeviceReady() {
console.log("onDeviceReady: debug is defined="+!!console.debug);
console.debug = console.log;
console.debug("test");
getBootstrapDataPromise().then(function(bootstrapData) {
stampleApp.start(bootstrapData);
}).done();
}
document.addEventListener('deviceready', onDeviceReady, false);
</script>
<div id="reactAppContainer"></div>
</body>
</html> Here are the ADP Logcat output:
As you can see, the console.debug method is defined before the Notice that I also tried to install the cordova console plugin. I was a bit confused by the documentation as I did not know what is the difference between installing the plugin with |
please note that building and installing an APK does not have this problem and my console.debug statements are executed without trouble |
console.info is undefined for me. I'm deploying a cordova app inside the phone-gap developer app. Is this normal? (I tried installing https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-console.git) without success.
The text was updated successfully, but these errors were encountered: