In UK English, 'informer' is very old and often implies that the person is disrespected for giving information to the authorities. They are betraying their former friends or associates (from the sixteenth century)
The word 'informant' describes a similar kind of person, but more respectfully. They are assisting the authorities in detecti