Chosen Solution

Hi, I had a little bit of water damage and had to replace the lightning port and headphone jack (everything else works perfectly). now when I connect it to an apple certified cable and power adapter it makes the charging noise and starts to charge. then a message pops up “device may not be supported” then the charging symbol disappears, i just checked it and it says that it is at 6% whereas previously it was at 4%, I dont know if its the battery playing up again (showing the wrong percentage of charge) or its actually charging. thx in advance

Almost certainly the charging IC is bad. This is a repair that requires micro soldering skills and equipment.