App logs when testing from Ionic View

Hi,

when a app is deployed using the Ionic CLI upload command, it’s possible get some application log when it crashes? When I’m testing at browser I can see the logs from console. There is any chance to do it in the Ionic View?

Thanks in advance.

Fredy

You could try https://docs.angularjs.org/api/ng/service/$exceptionHandler to catch the errors, and then do some basic opening a file and then filling it up with the error message.

I had issues, plugins catching the errors, couldn’t catch it in exceptionHandler event, and i couldn’t log it into file, so be careful.

Great solution! Just had to do some adaptations but worked perfectly!