happens after a while of playing? That's weird, I tested 5 battles without detection, I knew about the protection and bypassed it, usually it appears directly on start. So it can be something is on your device which is detected like GameGuardian or Luckypatcher.
Usually not needed but never wrong to do