If installing on iOS 11.x.x, FlexiSPY for iPhone/iPad will operate until the device is powered off or the battery runs out, after which time, you have to physically get the device and carry out a simple reconfiguration.
Find out more here, or speak to live chat.