On iOS 16.4 beta 1, when remote debugging a PWA on an iPhone 13 Pro Max, no console.log statements are shown when they come from the Service Worker.
Hello! Can you please provide us with the version of Safari you are using to inspect the iOS 16.4 beta 1 device? If you aren't already I'd recommend running Safari Technology Preview or Safari on macOS 13.3 to inspect iOS 16.4. Thanks!
I am experiencing a related issue logging/debugging with a Cordova app. I did a fresh re-install via Xcode-Beta (14.3) onto an iPhone 13 running 16.4 Beta 1. The app no longer shows up in my Development tab under the device in Safari Technology Preview 16.4. If I open Safari on the iOS device, any websites I have on-screen appear for debugging in STP but development apps do not. This is a new regression as it works fine in previous Safari/iOS versions.
(In reply to M from comment #2) > I am experiencing a related issue logging/debugging with a Cordova app. I > did a fresh re-install via Xcode-Beta (14.3) onto an iPhone 13 running 16.4 > Beta 1. The app no longer shows up in my Development tab under the device in > Safari Technology Preview 16.4. > > If I open Safari on the iOS device, any websites I have on-screen appear for > debugging in STP but development apps do not. This is a new regression as it > works fine in previous Safari/iOS versions. Apps building against iOS 16.4 or later should explicitly enable inspection of content they wish to inspect by setting `inspectable` to `YES` on their JSContext or WKWebView (https://developer.apple.com/documentation/webkit/wkwebview/4111163-inspectable/). This replaces the previous behavior where content was always inspectable in debug-entitled builds, and never inspectable in release builds by allow you to control when content is inspectable. For further issues regarding apps and the use of `inspectable`, please file separate feedback instead of commenting on existing feedback for an unrelated issue, that way we can correctly track all feedback and make sure we don't miss anything. Thanks!
<rdar://problem/106046990>
(In reply to Patrick Angle from comment #1) > Hello! Can you please provide us with the version of Safari you are using to > inspect the iOS 16.4 beta 1 device? If you aren't already I'd recommend > running Safari Technology Preview or Safari on macOS 13.3 to inspect iOS > 16.4. Thanks! I'm using Safari 16.2. On Safari Tech Preview 164 the console logs from the Service Worker aren't shown either.
(In reply to Danny Moerkerke from comment #5) > (In reply to Patrick Angle from comment #1) > > Hello! Can you please provide us with the version of Safari you are using to > > inspect the iOS 16.4 beta 1 device? If you aren't already I'd recommend > > running Safari Technology Preview or Safari on macOS 13.3 to inspect iOS > > 16.4. Thanks! > > I'm using Safari 16.2. On Safari Tech Preview 164 the console logs from the > Service Worker aren't shown either. Thank you for checking on STP! One other thing to check is that you are inspecting the service worker itself, and not the webpage. Service workers, since they can be shared between pages, are separate debuggable entities that appear as separate items in Safari Technology Preview's (and Safari's) Develop menu. The service work, when running, will appear in the Develop > [Your Device] menu under a header of "Service Workers"
In Safari 17.4.1, no service workers are shown in the Develop menu for Home Screen web apps when remote debugging, only for web apps running in Safari itself.