Al foil is so thin it tears very easily so using a construcyion adhesive which is basically thick & lumpy is out. Likewise contact cement for the same reason unless sprayed on. Even then you’ll only get one chance to get it right as it will grab & tear if you try to align it.
If the surface you are fixing it to is even slightly porous then spray on contact adhesive will work provided you spray & put the foil on while the glue is still wet so you can reposition it & smooth out any lumps. The porous substrate will allow the solvent in the glue to evaporate.
The best way to glue aluminum foil to another surface depends on the specific application and materials involved, but here are some general tips:
For bonding
aluminum foil to a rigid surface like wood, metal, or plastic, a strong contact adhesive is recommended. Apply a thin, even layer of the contact adhesive to both the foil and the surface, allow it to dry until just tacky, then press the foil firmly into place. Contact adhesives provide a very strong, instant bond.
For bonding aluminum foil to a more flexible surface like fabric or paper, a rubber-based adhesive like a spray adhesive or double-sided tape works well. The flexibility allows the foil to conform to the substrate. Apply the adhesive evenly to the back of the foil before pressing it onto the surface.
If you need to bond
aluminum foil to itself, such as for wrapping or forming shapes, a high-strength epoxy adhesive can provide an extremely durable bond. Mix and apply the epoxy to the foil surfaces, then clamp or weigh down the foil until the epoxy fully cures.
Regardless of the adhesive used, make sure to thoroughly clean and degrease the surfaces first for the best adhesion. Apply the adhesive thinly and evenly, and use firm pressure when bonding the foil to get maximum surface contact.