iPhone Only Charges When It Is Off – This is quite a common question with slightly old iPhone, Even new and latest model of iPhone may get this problem but it is usually found in old iPhones.
There are multiple solutions to this problem based on the circumstances:
Your iPhone has never been repaired or water-damaged: This solution will only work with this phones which have never been repaired outside Apple service center (Battery replacement is exceptional ) or has not been water damaged yet.
In this condition, you must check your charger and cable, First of all, try using an original apple charger and if you don’t have one try borrowing your friends to find out the problem.
some duplicate chargers may charge few models of iPhones whereas will fail to charge other models of iPhone mostly with updated software versions.
Cool Latest iPhone Vs Android Meme 2018