Why does this message show up on my iPhone?

After i charge my phone and disconnect it a message is there instead of the lock screen. It says "Charging is not supported with this accessory". The phone is not even plugged in. How can i get rid of this message?

This can be experienced when the Charger is faulty, i.e the wire is bent inside or possible tore, If not i'm not sure sorry

This message can appear if you're using a third party charger, or even if there's too much dust in the port. Firstly try using a new wire or USB port, and if you still get the message try cleaning the phone's dock connector with a dry toothbrush.

I had this with my iPod. I done nothing and it came up with that message. It really annoyed me so I checked the charger and there was a slight rip in there so I got a new charger and it charged up like normal hope this helped