If you're using v8, it uses XMLHttpRequest
instead of fetch
which is not available in the service worker. Using v9 web SDK will let you use Firebase inside the service worker. Would you mind trying to update the SDK version you're using and see if the issue will persist?
解决 Chrome 插件开发 XMLHttpRequest is not defined
2 min read