Battery connected to socket
You shouldn''t leave the AGM battery connected to any 12V socket in a car, regardless of that the socket is connected directly to the battery or through ignition, when the engine is not running. Because you don''t want your AGM battery to discharge through the car or supply any electrical sub system of the car.