How to disable cordova native messages in console output?

I want to surpress this output in Browser. I know its there but I dont want to see it anymore.

Native: tried calling GoogleAnalytics.trackView, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator

Found a fix.
Just do this in your app.component.ts:

    window.console.warn = function(){};
    window.console.error = function(){};
    window.console.log = function(){};
    window.console.exception = function(){};

Be sure to only do it in prod mode.
No outputs anymore :slight_smile: