How to keep app always running (Even when user forces stop at App Info screen)?

I’m able to make an app keep running, even when the user closes the app with the side menu. But how about to keep app running even after the user forces its stop like in Whatsapp?

Is it possible and if so how could I do this?

Services are called on Android and iOS background tasks.

In this case I do not know plugins for this, because surely you want to do a specific task.

What you must do is create your own plugin Cordova to do this in Java code must have Service and iOS (eg swift)

I found out that this behavior related to force closing is happening on MIUI rom. In vanilla Android it does not happen.

You cannot do this. If the User forces kills the app, it will stop. There’s no way around this.