The key to getting fabric to stick is spraying both surfaces that will meet. You have a little window of time but mot too much. Most people spray the glue and them immediately try to tact it together- you can not do that. You need to read the can and follow directions with time,t emp and tackiness of the glue prior to meeting surfaces.
The other headliner I did about 15 years ago I use the 3m black can stuff and it fell apart in a year. I then redid it with the 3M super77 spray and it lasted until I got rid of the car a decade later. I do fabric in homes on projects sometimes where I make custom headboards etc on rare occations. I always use that 3M super77.