Can you make an app stay up and "active"?

When playing clash of clans if you don't touch or move the screen after a minute or so it asks if you are still there. When you click yes it reloads the app. On multiple occasions I have gotten attacked during this time and it is infuriating. Is there a cydia tweak that makes apps think you are constantly using them? Or maybe has a ghost feature that acts like a button keeps getting pushed?
Sounds like an app issue... try and contact the developer...
Are you really playing if you aren't doing anything with it in over a minute? /confused

Original thread: https://forums.imore.com/threads/can-you-make-an-app-stay-up-and-active.250977/