Guys I have an iPhone 6 128gb that I bought just 4 days ago. It came sealed but with iOS 8.0 since I bought from a guy who had it on the first weak I upgraded OTA to iOS 8.1 and since yesterday I had it in the charger and it kept giving me the not supported accessory message and just keep getting disconnecting from the charger while its connected and I kept checking on the phone and reconnecting again and again till it got to 100% I did a hard restart maybe 4 times and still not working like it should.
Please help me
What are you plugging it into? Is it a USB hub or directly into a port? Have you tried plugging it into the wall?
When you say "hard restart," do you mean you held the power and home keys until it restarted or did you turn it off and then back on?
First, make sure it is an Apple charger, there have been issues with third party chargers. If the problem persists do a restore as new with a fresh copy of 8.1 through iTunes.
I occasionally get this error from my Griffin charger that I keep at work (it only appears sporadically whenever my iPhone is fully charged at 100%).