My iphone keeps saying charging is not supported with this accessory?

It's been charging recently but today it keeps saying that when i plug it in, i use a apple charger in the iphone. Does any one know why?

Your charger is worn out.

Have you tried using another charger? Maybe yours is already worn out. Just borrow from a friend and if it works just fine, I guess you need a replacement for your old charger.