So I'm currently running iOS 7.0.2 and something very odd is happening when I try to charge my iphone 5. I'm using the original iphone charger that came with the phone by the way. So when I plug it in it doesn't recognize the charger, so I usually plug and unplug it untill it does recognize it. If it does recognize it it'll constantly charge and uncharge untill it finally just stays charging. I thought it might be the cord so I went to buy a replacement cord and bought a rocketfish cord not knowing some 3rd party accessories would not work with the phone regardless, in the end my iPhone didn't recognize the charger. I was on the phone with apple care for hours and basically just told me to wipe my phone and restore but that did not work. I'm wondering if it indeed is a software issue or hardware. During the restoring I did notice that when I set it up as a new phone it did recognize the charger for the short amount of time I tried it out. If anyone knows a fix for this it would be greatly appreciated. Thanks for any help