Iphone is making me crazy

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.
It's plugged into a wall and I'm using the hub and cable that came with it in the box and I'm restarting it by holding the power and home button. It just did it again iMoreAppImg_20141027_003830.jpgiMoreAppImg_20141027_003830.jpg
It's plugged into a wall and I'm using the hub and cable that came with it in the box and I'm restarting it by holding the power and home button. It just did it again View attachment 69650View attachment 69650

I'm assuming this isn't an apple cable because it's not supported. You'll have to buy one from the Apple Store
iMoreAppImg_20141027_005602.jpg
I was expecting more from Apple 😣
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%).
View attachment 69652
I was expecting more from Apple ��

you do not need to buy a new one. the accessories included also have a 1 year warranty. If you have an apple store available take it in. Just because you bought it from someone that doesn't erase the warranty. If you do not have a store call up apple

Original thread: https://forums.imore.com/threads/iphone-is-making-me-crazy.305561/