- firebase version 7.12.0 - must move the firebase-messaging-sw.js file to the main domain path - messaging.usePublicVapidKey 生成“密钥对”,获得“公钥”,网页端里面要用