3rd Party iPhone cable

Does anyone could help me solve this issuse i bought a iphone cable from 3rd party but i use that cable charge the phone few time and out of sudden is pop out saying Its a 3rd party cable is there anyway to sovle this issuse??