If not very carefully aligned shims may shift during set time and the voice coil could scrape under load when completed. Another method to ensure centering is to apply an audio signal (single frequency relative to the response of the speaker) to the driver and glue the edges carefully without disturbing the centering. I have been reconing or repairing edge foam rot with this method for over 30 years without failure.
Use an audio signal generator at low (almost inaudible) volume - if you do not have access to one you can download an app for your phone and use a adapter cable, 1/8" mini stereo to a pair of clip leads, from the headphone jack. Depending on the speaker cone/basket edge, pre glue the outer edge of the cone and/or gasket material but do not press into place at this time. After setting the cone into the basket, apply the signal to the speaker at a low volume until the speaker centers itself. For a typical woofer I use 50Hz SINE wave and slowly bring up the volume until the cone snaps to center. Carefully apply pressure to the surround edges until a complete seal is formed. Depending on the adhesive used you can remove the signal after a few minutes after the the glue has set. A typical cone glue starts out cloudy/milky white and turns clear as it cures which is a good indication that you may safely remove the signal from the speaker. Allow the adhesive to completely set overnight before applying full signal to the speaker.
I've seen YouTube videos showing this method. Do a search on reconing speakers with an audio generator and it will direct you appropriately. Springfield Speaker Repair has a very good video tutorial for the beginner.