iPhone charging shows blinking
I've plugged in my iPhone (5S)and both the battery with a red stripe at the bottom and the icon for the connector show for a bit and then blink on and off. I've tried all types of connections, get the same. I replaced my battery at some earlier point but haven't seen this before. Any suggestions or do I just need to either buy a new iPhone or get a new battery?
iPhone 5s, iOS 12