Hi
My preferred adhesive for this job is Araldite standard. Make sure you remove all the old glue from the glass and metal backing to the window latch and abrade surface of metal. Apply glue, secure with masking tape and leave for 24 hours to harden completely, avoid any movement during this period, even vibration from running engine and you should then have a solidly affixed latch.
I hope this helps.