I have an iPhone 5 by Apple, and have used iPhones for the last few years. I recently had a problem where my iPhone 5 wasn’t charging using my cables. I immediately dismissed those cables as old and faulty, and looked for knock-off versions.
Imagine to my chagrin that I still received an error that “This cable or accessory is not certified and may not work reliably with this iPhone.” Aargh!
After looking high and low for a solution that would work, a friend of mine tried something so primitive that it worked. He took a small screwdriver and cleaned the small space on the bottom where the charger cable goes into. There was a surprisingly large amount of dust inside, preventing a proper charge from happening. After 15-20 seconds of cleaning the space out of dust, my phone was able to charge with any cable once again.