News for hackers. Stuff that matters.
Re:WebKit Features in Safari 16.4 by yanis_t on Monday March 27, 2023 @04:19PM (#35331881)
Pretty big deal for PWA. Now we can send push notifications, and update app badges.

Now if we could get periodic background sync api, and vibration api, that would be perfect.

Re:WebKit Features in Safari 16.4 by sccxy on Monday March 27, 2023 @04:28PM (#35332021)
I tested some features on my PWAs.

New wake lock API does not work in PWA, only works in Safari...

Apple is making sure that nobody will use PWAs.

https://whatpwacando.today/wake-lock

Re:WebKit Features in Safari 16.4 by JayStavis on Monday March 27, 2023 @04:55PM (#35332444)
The release notes for 16.4 include "Added Support for the Screen Wake Lock API"

https://developer.apple.com/documentation/safari-release-not...

Re:WebKit Features in Safari 16.4 by sccxy on Monday March 27, 2023 @04:56PM (#35332470)
Yeah, but "bugs" happen and this new wake lock only works in browser safari.

Does NOT work in PWA. Bug or intentional road block?

Re:WebKit Features in Safari 16.4 by CryZe on Tuesday March 28, 2023 @08:23AM (#35339686)
It does not work for me in browser Safari (iOS) either:

undefined is not an object (evaluating 'navigator.wakeLock.request')

Re:WebKit Features in Safari 16.4 by kevindees on Sunday April 02, 2023 @09:19PM (#35417364)
I'd love to know if anyone discovers what is goin on with PWAs. I got wake lock working in the browser but not with the PWA.
Re:WebKit Features in Safari 16.4 by illiarian on Monday March 27, 2023 @04:55PM (#35332451)
> Apple is making sure that nobody will use PWAs.

Ah yes. The amount of random APIs that are an absolute necessity for something to be called the true PWA just keeps growing with every release.

Re:WebKit Features in Safari 16.4 by postalrat on Tuesday March 28, 2023 @01:26AM (#35336282)
Not really
Re:WebKit Features in Safari 16.4 by jensimmons on Monday March 27, 2023 @05:18PM (#35332791)
If there is a bug, we will fix it. Bugs can be reported at https://bugs.webkit.org. We would never intentionally prevent web technology from working when a site is added to the Home Screen and opened as a web app.
Re:WebKit Features in Safari 16.4 by sccxy on Monday March 27, 2023 @05:31PM (#35332953)
Re:WebKit Features in Safari 16.4 by Guidii on Monday March 27, 2023 @10:04PM (#35334910)
Thanks for posting the bug links.

Also wanted to point out that the user feedback in https://bugs.webkit.org/show_bug.cgi?id=249645 is not the way we should treat browser developers. (Not blaming the parent - I assume this is some other user being..... cranky?)

Re:WebKit Features in Safari 16.4 by unclet on Monday March 27, 2023 @09:50PM (#35334814)
Notification from WebPush does not play alert sound

https://bugs.webkit.org/show_bug.cgi?id=254562

Re:WebKit Features in Safari 16.4 by starik36 on Monday March 27, 2023 @05:13PM (#35332744)
Only for web pages that user has manually added to the home screen. Since normal users don't even know what that is, I don't see this as pushing the PWA envelope forward.
Re:WebKit Features in Safari 16.4 by waboremo on Monday March 27, 2023 @05:59PM (#35333324)
This is one of the integral features that prevented a lot of places from even creating PWAs. Now that it no longer exists as a problem, PWA adoption will increase and alongside it education. For example, many places are probably going to show a "add to home screen" banner, with related icons to make it easy for people to find where that setting is. Kind of like how many "normal users" in the past would have been scared about downloading a new browser, but now when you download a new browser it shows you the next steps on how to do so (most of us don't even think about these anymore, but they exist and are important).

A next major step is inclusion into the app store, but until then this is a major win for PWA.

Re:WebKit Features in Safari 16.4 by Longhanks on Tuesday March 28, 2023 @02:18AM (#35336645)
> PWA adoption will increase

This is the 2020ies' "year of the Linux Desktop", right?