How to create an ionic app which can monitor another app is running or not?

My ionic app is sometimes forced closed by android system due to some unknown reason. I guess is caused by power usage. I could not find a method solve this problem. I want to use a dirty method: create a monitoring app and let it monitor the my ionic app, once it find my ionic app is not running in the process list, it will open my ionic app again.

Is it possible to create this monitor app using ionic?

What happens when the system OOM-kills this hypothetical second app?

I don’t know actually. I assume the second app will never be forced close by system. It only checks the first app is running or not every several minutes, I guess it should not be considered as a power consuming app.