iPhone 4S 64GB not charging unless switched off My iPhone is simply not charging unless I switch it off while it is already plugged in. I suspect it to be a software problem, as when its off it charges. Windows does not seem to recognize the device but still charges when it is switched off.

I have tried cables that work on my friends phones and original cables, still no luck.

Any ideas?
Users complained that iPhone won't charge when it turns on. This is really strange. You can check by following methods:


Check the USB cable 
Check the charging accessories 
Clean the charging port 
Hard-reset your iPhone
Using iPhone Recovery Mode, restore the iPhone to factory settings