Kodular app "restarts" itself after so long in the background

See also this thread: Webradio App: Doesn't work in Background - #3 by bodymindpower

You can try TaifunBatteryOptimization extension: