0

I am having issues with fetch() statements in my service worker in a progressive web app installed on my Android phone (with Chrome). Ordinarily this would be easy to debug by sending messages to console, but without a console, I'm just working blindly using trial and error. (and it's not working!)

How can I debug a service worker on a phone installed PWA?

3
  • 1
    Indeed, it could be a problem. Could you provide a Minimal, Reproducible Example of a PWA to debug, with an example of an issue? Commented Nov 13 at 5:10
  • @SergeyAKryukov thanks but my question is not about fixing the issue itself (which I'm sure is straightforward enough) but is about how to debug a PWA service worker without console messages? Commented Nov 14 at 13:15
  • 1
    Understood. I guess you can do it using DevTools, with the debugger; instructions. At a glance, it doesn't look so easy... I found https://developer.chrome.com/docs/devtools/progressive-web-apps, but I did not try it all. Commented Nov 14 at 14:46

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.