iOS Safari extension background doesn't show any console logs

My Safari extension (based off a Chrome one) is working fine in a Mac OS Safari version but when I try to run it on the phone I'm experiencing some bugs in communication with the backend, which I cannot troubleshoot because when I click on Develop > my_phone > Safari Extension Background Content I don't see any logs in there.

Where the background logs are supposed to appear? How can I find them? I don't see them in Xcode either.

Console logs on iOS does not show up unless Web Inspector is open when the log happens. Try repeating your actions while Inspector is open to see them.

You can do this by going to Safari -> Develop

You can enable this by going to Safari -> Preferences -> Advanced -> Show Features for Web Developers.

Hopefully this helps.

Rico WWDR - DTS - Software Engineer

iOS Safari extension background doesn't show any console logs
 
 
Q