For most Chinese batteries, you should put the charger leads all together, plug in, switch on, then connect to the bike.
I would guess that all vikes that use comms in the charger, like Bosch, Suntour, Yamaha, Shimano, Brose etc., you would switch on the charger after connecting to the...