Game ui not responding to touch

hi,
i have a game in which my ui stops responding to touch while the game is going on in the background(i can see things changing in the ui.). i just can’t click on anything. can someone guide me as to why or when this happens?
my game is too big and i can’t share it on this forum, so please just answer with this much information.
thanks
My Cocos Creator version is 2.4.3

It may be captured by other UI layer or break by error. You can do a remote debug and trace the input event.
https://docs.cocos.com/creator/manual/en/publish/debug-jsb.html#debug-on-target-device

Hi there sorry to here your having a problem. Dose it only when it goes into background.

/**
You can add this line to your AppDelegate.cpp
this will stop your program going into power saver, lock screen and background.
see if it still responds to touch after 5 mins.
**/

//Keep Alive
cocos2d::Device::setKeepScreenOn(true);