我正在尝试在KaiOS应用中实现推送通知。在Chrome和Firefox浏览器中,它工作正常(每当服务器向客户端推送消息时显示通知)。但是在模拟器中,它显示了这样的错误
DOMException [AbortError: "Error retrieving push subscription."
请检查screenshot以供参考。
这是我的 manifest.webapp 权限
"permissions": {
"input": {
"description": "Keyboard permissions"
},"systemXHR": {
"description": "Required to login and download data"
},"serviceworker": {
"description": "Needed for associating service worker"
},"push": {
"description": "Needed for received push notification."
},"desktop-notification": {
"description": "Needed for creating system notifications."
}
},
任何帮助将不胜感激。
谢谢