Doorbell won’t charge when hard wired

Do I need a resistor in line to make the device charge? I have an 18V 500mA AC - AC Transformer and nothing happening when wired to the device and plugged in, I understood the resistor wasn’t needed but Ring say it is and wnat to sell me one for £8