Is it possible to read/acknowledge a mobile OS notifications from a LC script?

This is what I want to achieve and the problem I'm facing:

I have a mobile (iPhone or Android) device running unattended 24 x 7, from time to time it stops and I can't find out the reason. When I get to the device (installed far from home) it is resting on the Home screen and there is no indication of what happened.

I suspect the reason could be an OS notification like those when the device is overheating or when the battery is under 20%.

Any ideas as how to deal with this?

Thanks

Last edited by simon.schvartzman on Wed Aug 09, 2017 9:18 pm, edited 1 time in total.

I'm not sure if it is a crash or something else. I've noted that when the OS sends a notification (like battery low) the LC App gets interrupted and doesn't go back to the running state. Am I correct?

Plug it in and pull the device log from xcode.

That's a brilliant idea, as I use Xcode just to load to iPhone I never thought about this. I'm not sure I will be able to read the outcome but that's another story...(may be I'll need your help (again))