I’ve checked other topic talking about this but I can’t find a solution.
I’ve installed cordova-plugin-console and I am getting log in chrome (with console.log or $log.log)
But in Xcode I can’t get anything. It is the same with any other way (ionic emulate -lc or idevicesyslog).
The point is the app does NOT log my console.log.
I need to get them because something is working on chrome but not on the device (different behaviour) and I need to have some debug log to check why.
If you run in the simulator or on a device, you can open Safari and then go to the ‘debug’ menu. You can then inspect the code on the device much like you would in chrome. You could see if the logs are showing there.
On the Xcode log output, I assume you have no errors saying if the console log plugin is erroring?
Have you tried removing and re-adding the plugin and the platform?
In my case, XCode was not outputting any console.logs or errors in $ionicPlatform.ready block because I tried to call cordova Keyboard plugin that was not properly installed. That problem also led to other cordova plugins failing silently.