I have an ipad charger for 4th generation. When I connect it to the ipad so that it can charge it charges correctly for a bit but then it tells me that it is not charging
Have you tried to give your iPad a reset? Hold down the sleep and home keys until you see the silver apple. Let it reboot and try again.
You may also want to try a different charger. See if you can replicate teh issue. If you can, then there's something going on with your iPad, if you can't then it's probably the charger.
Retrieving data ...