1index.html//Put this inside the script//Below above snippet code.messaging.getToken({vapidKey: 'MY_VAPID_KEY'}).then((currentToken) => {if (currentToken) {console.log("token is ",currentToken);//Send this token to your server and store it.} else {console.log('No registration token available. Request permission to generate one.');}}).catch((err) => {console.log('An error occurred while retrieving token. ', err);});