To prevent the app stoped by itself:
System Settings > Device Maintenance > Battery > Unmonitored apps > Add apps > checked "Do in group".
Security Center > Battery > Enable Smart power-saving mode > Power-saving app control and management > Add apps > checked "Do in group".