What the message means
From the iPhone XS onwards, the phone checks whether there is moisture in the Lightning or USB-C port when you plug something in. The exact wording depends on the port. With Lightning it usually says “Charging Not Available” when you charge, with USB-C it says “Liquid Detected in USB-C Connector” or simply “Liquid Detected”.
While the warning is active, the iPhone will not charge by cable, and accessories on the port will not work either. That is intentional, because electricity and moisture together attack the contacts. According to Apple, the port and the cable can corrode and be permanently damaged.
