App logs when testing from Ionic View


#1

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


#2

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.


#3

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