Yes it charges when mounted in the car. If you switch off and leave it mounted it goes into standby mode which consumes some power and it will go flat quite quickly. If you switch it off via the switch on the top it will retain its charge longer.
It maybe you have a poor connection. Try removing the unit and mount then clicking it firmly back in place to see it it makes a difference.
If the unit is faulty it's a warranty swap.