The present invention is directed to a method for detecting a contact between a drive mechanism and a bung in a drug delivery device. The bung is movably provided in a cartridge and the drive mechanism includes a piston rod and a bearing for driving the bung in a distal direction. The contact is indicated by a change in a vibration behavior, wherein the method includes the steps of inducing vibration excitations into the drug delivery device, displacing the piston rod relative to the bung such that a gap between the bearing and the bung is reduced and monitoring vibration of the drug delivery device. The invention is further directed to drug delivery device produced according to the respective method.