Question: why does my iphone charge and uncharge?
Answer: This probably is an issue with your iPhone port. Quite often, a large amount (a lot more than you think) of pocket lint and dust gets stuck INSIDE the charging port. otherwise check if the cable is genuine and working, and if your software is up to date!