In Star Trek Voyager, it happens a few times that a medical device is attached to the neck. For example, in S03E02 "Flashback" at 8:28, the doctor attaches a device to Tuvok's neck. Attaching that device takes about 1 second. It sticks instantly.
How does this work out of universe? How does the production crew make it happen that the prop sticks live during the shot? It can't be glue because it sticks right away.