Charging battery with external charger while powering load
If the external power source is a battery charger then it is likely to be confused if there is a load on the battery while it is charging.

Most devices that can run from external power or battery use a simple power supply, and put the battery charger inside the device.