I always try to create a porous surface or create a rough area for the parts being attached and most times use a 2 part epoxy. Sometimes a hole is drilled into the plastic and the metal is cut just to have the adhesive something to bite on.
Super glue or more stronger CA's work well too... all depending on what it being done.