It needs good ground to work,
remove it and scratch the backside then run a ground lead to it, then start the car and see if it now charges

The bolts that attach it to the firewall should have small serrated teeth on them to pierce the paint to get a ground connection