For me, it's been an intermittent problem, with a 5th gen iPad. After updating to the latest IOS (17.2?), the iPad refused to charge. It says that it is charging, the charger and cable work fine, but no charge occurs. the battery just runs down until it shuts off.
Took it to the Genius Bar last week and they said it was dead and not worth fixing. Just buy a new one!
Brought it home, AND IT CHARGED to 100%. And worked fine for a few days. Now it's not charging any more.
Tonight, it ran dead (even though the charging icon was displayed at all times). Then seemed to refuse to charge. Now it is stuck with the Apple startup icon displayed. I do a system reset, and it eventually started. Showing a 2% change, charging icon displayed, so that makes me think that the charger is working. It seemed to be operating properly. Now 1% charge, in low power mode. I expect it to die any minute. Dead. Back to the red line battery.
one more attempt... stuck on the apple icon again. reset.... 1% power, says charging, dead again.