正在試圖挽救端點URL,鑰匙和令牌到數據庫,但我得到一些錯誤而使代碼下來PLZ檢查 main.js var endpoint = sub.endpoint ;
var key = btoa(String.fromCharCode.apply(null, new Uint8Array(sub.getKey('p256dh')))) ;
var token = btoa(String.fromCh
我完成了Google的Web推送通知教程(https://developers.google.com/web/fundamentals/getting-started/codelabs/push-notifications/),並將服務工作人員添加到了我的Web應用程序。不過,我注意到通知文本在下面的例子中截斷大多數情況下,如: truncated text notification exampl