Sami Silmani created CB-12376: --------------------------------- Summary: IOS log issues Key: CB-12376 URL: https://issues.apache.org/jira/browse/CB-12376 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 6.4.0 Environment: macOS Sierra 10.12.2 Xcode 8.2.1 Reporter: Sami Silmani
Logging in ios doesn't work event after adding the plugin cordova-plugin-console steps to reproduce the bug: {code} cordova create myApp com.cordova.myApp cd myApp/ cordova plugin add cordova-plugin-console cd www vi js/index.js cordova emulate ios {code} in index.js i added 3 console.logs only the on device ready and Received Event are displayed on the xcode console log, all the others on the index.js and the code added later doesn't work, the log works fine on android. {code:title=index.js|borderStyle=solid} console.log("starting log"); var app = { // Application Constructor initialize: function() { document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); console.log("init function"); }, // deviceready Event Handler // // Bind any cordova events here. Common events are: // 'pause', 'resume', etc. onDeviceReady: function() { this.receivedEvent('deviceready'); console.log("on device ready"); }, // Update DOM on a Received Event receivedEvent: function(id) { var parentElement = document.getElementById(id); var listeningElement = parentElement.querySelector('.listening'); var receivedElement = parentElement.querySelector('.received'); listeningElement.setAttribute('style', 'display:none;'); receivedElement.setAttribute('style', 'display:block;'); console.log('Received Event: ' + id); } }; app.initialize(); {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org