NEW 252685
no logs for PWA
https://bugs.webkit.org/show_bug.cgi?id=252685
Summary no logs for PWA
Danny Moerkerke
Reported 2023-02-21 12:59:38 PST
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.
Attachments
Patrick Angle
Comment 1 2023-02-21 13:03:41 PST
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!
M
Comment 2 2023-02-22 08:14:51 PST
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.
Patrick Angle
Comment 3 2023-02-22 09:07:03 PST
(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!
Radar WebKit Bug Importer
Comment 4 2023-02-28 13:00:19 PST
Danny Moerkerke
Comment 5 2023-02-28 13:49:47 PST
(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.
Patrick Angle
Comment 6 2023-02-28 13:57:22 PST
(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"
Danny Moerkerke
Comment 7 2024-04-30 09:37:38 PDT
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.
Danny Moerkerke
Comment 8 2024-09-17 02:22:00 PDT
From the Safari 18 release notes: "Fixed Service Workers not appearing in the Develop menu or remote Web Inspector menu. (130712941)" I still don't see any Service Workers for Home Screen web apps or web apps running in Safari 18 in the Develop menu when remote debugging an iPhone running iOS 18. Console logs from the Service Worker aren't shown either.
Note You need to log in before you can comment on or make changes to this bug.