News for hackers. Stuff that matters.
Re:Apple reverses course on death of Progressive Web Apps in EU by danShumway on Saturday March 02, 2024 @06:06PM (#39576635)
> But they don’t. Why not?

Because PWAs lack substantial capabilities that make them impossible to use for most app development. Which is what everyone has been saying.

Note that developers do move out of the Android store, there are a host of applications available on F-Droid that are not available through the Android app store even though discoverability on F-Droid is nonexistent. But those developers don't build PWAs, because PWAs are not a viable platform for building modern apps.

It has nothing to do with the 30% being worth it or not and everything to do with the fact that moving away from the app store on both Android and iOS is really only theoretically possible -- and PWAs in every practical sense can't actually be used to avoid the tax.

You bring up Candy Crush above as an example of an app that could be a PWA. It couldn't. PWAs lack reliable storage mechanisms, unless Candy Crush starts requiring online accounts it's not going to ship as a PWA. Meanwhile, the last "big" app that tried to go down the PWA route was Wordle, which was both difficult for users to install and was immediately swamped with fraudulent clones in the app store claiming to be the official apps, which neither Google nor Apple did anything to stop.

Once the NYT purchased Wordle, one of the first things they did was add an online account system -- in part to mitigate the common data losses that were present in the PWA. Wordle is the best possible candidate for a PWA, and the NYT is still struggling with it. I would not be surprised if at some point they don't turn it into a native app.

It's not that the payments are worth 30%. It's that going outside the app store (even when you're not collecting any payments at all) isn't viable. Which is what everyone has been saying all this time.

> Also if it is only Apple holding PWAs back

It's not. Apple is one party holding PWAs back.

Re:Apple reverses course on death of Progressive Web Apps in EU by scarface_74 on Saturday March 02, 2024 @10:30PM (#39578184)
Exactly what is stopping King from having an online account or just having “login with $x” where $x is Google/Apple/Facebook? You act as if creating an online account is a big barrier to entry.

I can set up a scalable online account in literally a couple of hours that allows login with third parties like the above with Cognito, Lambda and DynamoDB. It’s not a heavy lift. Yes I’ve done that at scale.

Re:Apple reverses course on death of Progressive Web Apps in EU by danShumway on Sunday March 03, 2024 @09:34AM (#39581059)
> Exactly what is stopping King from having an online account or just having “login with $x” where $x is Google/Apple/Facebook?

Privacy, security, convenience and the fact that it's a #$%&ing terrible user experience. Nobody wants to log in with Facebook every time they play a video game. I mean, heck, you're on here arguing about user privacy, and your solution to that is that more user data should be stored in the cloud? Come on.

King does appear to have online accounts for at least the people who want them[0]. I would argue a lot of people probably don't want them.

----

[0]: Or at least did at one point, a "quick Google search" shows that King did at one point make its games available online and was forced to abandon that platform in 2020 due to (in their words), "changing web-based technology on major browsers". Seems like that suggests something about PWAs as a viable alternative to the app store, but whatever, I'm sure it's just a coincidence and we definitely shouldn't conclude anything from it other than that King loves forking over that 30% /s

Re:Apple reverses course on death of Progressive Web Apps in EU by scarface_74 on Sunday March 03, 2024 @08:52PM (#39586313)
> Privacy, security, convenience and the fact that it's a #$%&ing terrible user experience. Nobody wants to log in with Facebook every time they play a video game. I mean, heck, you're on here arguing about user privacy, and your solution to that is that more user data should be stored in the cloud? Come on.

You mean like no one wants to log in with Steam, or their console? You realize that everyone on mobile is already logged in to an account where there game data can be saved an automatically synced right?

> King does appear to have online accounts for at least the people who want them[0]. I would argue a lot of people probably don't want them.

Since most people play on mobile, King didn’t need a separate online account, between saving in Game Center and just saving locally and letting iCloud taking care of the backups and online sync they didn’t have to.

Re:Apple reverses course on death of Progressive Web Apps in EU by danShumway on Monday March 04, 2024 @08:17PM (#39598273)
> You mean like no one wants to log in with Steam, or their console? You realize that everyone on mobile is already logged in to an account where there game data can be saved an automatically synced right?

Do you not realize that people use consoles offline? Or that every single platform that you're talking about has options to disable online saves? Or that there are multiple platforms like the Switch which straight-up don't sync every game's data and keep a number of games purely clientside?

Yes, people care about offline storage. They just do, I guess congratulations if you're one of the people who magically don't have to care about that, but lots of people do.

Syncing is nice, but it does not get rid of the need for reliable offline storage. Every single platform -- literally every single one, including iOS, understands this and has mechanisms to allow users to keep data local. Literally every single one. Did you know that consoles like the base PS5 don't even require an Internet connection at all in order to play games? Not only do you not have to sync your saves, you don't have to use the Internet at all.

Because some (not all, but enough) users care about this, and every single major games platform from iOS to Android to Steam to GoG to Itch to Windows to Mac all understand this and have all put resources into making sure that their platforms and distribution services work without requiring background sync or cloud storage.

I will of course note that we have entirely moved away from the privacy argument. Your earlier claims about web privacy sound extra-nonsensical when viewed through the light that your solution to storage is to upload literally all of everyone's data to the cloud. But whatever.

> Since most people play on mobile, King didn’t need a separate online account, between saving in Game Center and just saving locally and letting iCloud taking care of the backups and online sync they didn’t have to.

Which is not available to PWAs.

If you keep saying the same things over and over again, I'm going to keep giving you the same replies. PWAs can not save in Game Center, Game Center is irrelevant to any conversation about what King can and can't store in a PWA.

If you want to store data in PWA, that does require a separate online account. And as I've said elsewhere, even that is not really a solution and you're still going to need to worry about data loss.

Re:Apple reverses course on death of Progressive Web Apps in EU by scarface_74 on Saturday March 02, 2024 @10:36PM (#39578210)
Local storage is not the answer. It’s the expectation in 2024 that you should be able to use an app across devices and keep your state. And you act as if setting up accounts on a server is hard. It’s literally a CloudFormation template with Cognito, Lambda, IAM and DynamoDB.

Yes, I’ve done it at scale and yes it’s that easy.

Re:Apple reverses course on death of Progressive Web Apps in EU by danShumway on Sunday March 03, 2024 @09:32AM (#39581043)
> It’s the expectation in 2024 that you should be able to use an app across devices and keep your state.

Device sync is a solved problem on quite literally every single major platform, including iOS. There's no reason Apple couldn't sync PWA storage using the same mechanisms.

> And you act as if setting up accounts on a server is hard.

It objectively increases attack surface, decreases privacy, adds user friction, and is unnecessary for the majority of apps. Most users (myself included) don't want online accounts. I don't need an online account for an alarm. I don't need to log in with Facebook or Github or whatever just to do basic things on my phone.

This is just unbelievably silly at this point. Of course reliable offline storage matters for app development, are you seriously going to try and argue that it doesn't? If Apple got rid of reliable offline storage for native applications, nobody would say that didn't matter or that it wasn't a big deal. Some of us actually like that we can do things like type into a text editor and know the text document will still be there when we come back to our computers, and that it doesn't have to get synced to somebody else's servers to guarantee that.

The solution to app storage is not to completely abandon privacy, require an Internet connection for every app, and then put all of our information on somebody else's server.

Re:Apple reverses course on death of Progressive Web Apps in EU by scarface_74 on Sunday March 03, 2024 @10:09AM (#39581291)
Every single app on the App Store gets device sync for free via iCloud.

I can drop my iPhone in the ocean, buy a new iPhone and and my new iPhone will have all of the data that my old iPhone had within the last 24 hours.

How exactly do you do “device sync” without an account somewhere?

> It objectively increases attack surface and is unnecessary for the majority of apps, and most users (myself included) don't want one.

Because for the majority of users - they don’t need a separate account because all of their state can either be saved by the app just saving locally and letting iCloud take care of it. By logging the state in Game Center or some apps like Overcast use the users app specific iCloud token (each app gets a unique token per user not shared across apps) and stores state server side.

I can guarantee you that most users expect to have everything backed up automatically and expect to be able to move between devices.

> Some of us actually like that we can do things like type into a text editor and know the text document will still be there when we come back to our computers, and that it doesn't have to get synced to somebody else's servers to guarantee that.

That must be why no one uses Google apps so their data is accessible across devices, Office 365 and why Chromebooks are so unpopular because people don’t like cloud backup….

Re:Apple reverses course on death of Progressive Web Apps in EU by danShumway on Sunday March 03, 2024 @10:28AM (#39581409)
> Every single app on the App Store gets device sync for free via iCloud. I can drop my iPhone in the ocean, buy a new iPhone and and my new iPhone will have all of the data that my old iPhone had within the last 24 hours.

Do PWAs?

Like holy crud, it's like you're not reading anything I'm saying. This is what everyone is telling you, PWAs lack critical capabilities. And you keep saying, "no, it's fine, why don't they just [insert capability that isn't available to them]."

> Because for the majority of users - they don’t need a separate account because all of their state can either be saved by the app just saving locally and letting iCloud take care of it. By logging the state in Game Center or some apps like Overcast use the users app specific iCloud token (each app gets a unique token per user not shared across apps) and stores state server side.

Which isn't available to PWAs.

> I can guarantee you that most users expect to have everything backed up automatically and expect to be able to move between devices.

Which isn't available to PWAs.

It's not even available to PWAs that do use an online account. iOS has unreliable background sync for PWAs, so if you use a PWA without an Internet connection, you can't rely on that data getting synced in the background once you do get an Internet connection. You have to remember to re-open the app to make sure that the sync happened.

> That must be why no one uses Google apps so their data is accessible across devices, Office 365 and why Chromebooks are so unpopular because people don’t like cloud backup….

I'm sorry, are you seriously going to try and argue that users don't care about the ability to have offline storage? This is unbelievably out of touch.

This must be why nobody complained about Windows requiring a Microsoft account to install, why nobody uses Sublime or Notepad because they don't have online accounts, why nobody ever downloads DRM free games, and why nobody uses a computer offline /s

It's just absurd. Of course users like having the option of reliable offline storage. The inability to integrate with iOS backup and the inability to store data reliably without an internet connection and a separately managed user account or online storage service is very, very obviously a barrier to using PWAs for serious work.

If Apple turned iOS into a Chromebook-style service tomorrow, everyone would be up in arms about it. Most Apple users don't want that. And in fact, even Apple devices do not require an Apple account to use because Apple recognizes that having that be optional is important to users.

Re:Apple reverses course on death of Progressive Web Apps in EU by scarface_74 on Sunday March 03, 2024 @08:48PM (#39586283)
> Do PWAs? Like holy crud, it's like you're not reading anything I'm saying. This is what everyone is telling you, PWAs lack critical capabilities. And you keep saying, "no, it's fine, why don't they just [insert capability that isn't available to them]."

No “everyone” is saying that mean old Apple is keeping PWAs back because they don’t support some web spec. Which web spec is there that Apple should be supporting where cross device sync of local storage is possible?

> Which isn't available to PWAs.

Which spec is Apple not supporting that would make that possible?

> I'm sorry, are you seriously going to try and argue that users don't care about the ability to have offline storage? This is unbelievably out of touch.

No you were saying that users don’t care about device sync and would be happy with only local storage.

> This must be why nobody complained about Windows requiring a Microsoft account to install, why nobody uses Sublime or Notepad because they don't have online accounts, why nobody ever downloads DRM free games, and why nobody uses a computer offline /s

And since we are talking about mobile devices that get left in cars, dropped in the ocean, stolen etc. cross device sync and automatic backup that’s been available since 2010 is kind of the norm.

You really think more people are using Sublime text than Office365, Google docs, and even notes on Macs?

You have heard of services like Dropbox, OneDrive, Offive365 etc haven’t you?

And BTW, the notes app on Mac also automatically syncs between my Mac, iPad and iPhone - yours doesn’t?

> It's not even available to PWAs that do use an online account. iOS has unreliable background sync for PWAs

Apple restricts background processes for all third party apps to save battery life. It’s been this way since 2010.

> And in fact, even Apple devices do not require an Apple account to use because Apple recognizes that having that be optional is important to users.

You really think iOS users don’t have iCloud accounts? Have you actually ever tried to use an iOS device without an account?

You realize that Apple’s equivalent of Google Docs - the iWorks suite has synced across devices since 2010 don’t you?

Re:Apple reverses course on death of Progressive Web Apps in EU by danShumway on Monday March 04, 2024 @07:30PM (#39597972)
> Which spec is Apple not supporting that would make that possible?

Background Sync on iPhones is terrible, see https://developer.mozilla.org/en-US/docs/Web/API/Background_...

In addition, Apple exposes limitations on local storage that go far beyond what specs demand. PWAs can save a maximum of 50mb of storage, which is woefully insufficient for an app platform that lacks good data export mechanisms. This is entirely Apple's choice, there is no limitation in the spec that requires this.

In addition, Apple wouldn't need to use a web spec to improve storage reliability. We're not talking about a web standard at this point, we're just talking about persisting data in a way that users can inspect, and syncing data across devices. There is no web standard that Apple would need to adopt to allow Safari data from PWAs to be stored in iCloud. And that shouldn't be a web standard, it should be part of the browser as a user agent. Browser sync is not a web standard and should not be a web standard, and yet every major browser supports it to some degree including Safari. Apple isn't following a web standard when it syncs your bookmarks, and it's not obeying a web standard when it refuses to sync your localstorage.

Apple is also not following web standards when it periodically deletes localstorage for non-PWA websites when they haven't been visited in a while. Imagine if you played a game on your phone, put it down for a month, and came back and everything you saved was just erased because Apple deliberately erased it. That's how Apple approaches web storage, and obviously that's a dealbreaker for serious application development.

And this is not something Apple has to sit around waiting for web standards to evolve in order to fix. It's 100% their choice.

> No you were saying that users don’t care about device sync and would be happy with only local storage.

No, I very clearly was not. I was saying that local storage is important and it matters, and that device sync is not a perfect substitute or necessarily desirable for every app. Which is correct. Device sync is not a substitute for reliable offline storage.

Note that it's extra super-not a substitute for reliable offline storage if Apple is the one in charge of it, because the offline storage is what gets synced. And if Apple is regularly deleting all of your data, then it doesn't matter that Apple is syncing it, because they will also sync the deletion.

We could sort of broaden this out and say that PWAs lack reliable storage period, whether it's synced or not. Only 3rd-party servers can be trusted not to delete data (which is terrible for privacy), and Apple devices can't be trusted to send that data to the 3rd-party server if the app is used offline.

In short, Apple has ensured that PWAs are not a great fit for storing any kind of important data, regardless of how you store it.

> And BTW, the notes app on Mac also automatically syncs between my Mac, iPad and iPhone - yours doesn’t?

Synchronization for every single app you mentioned is optional. Not everyone uses that stuff. And yeah, there are large portions of the population that use apps that don't sync. I don't know if it's a majority, probably not. But like... I'm sorry that programmers get to use apps too? I don't know what you want me to say, it's a non-trivial demographic that doesn't sync their data everywhere, and if you're trying to build a private platform that respects user autonomy, data sync should be optional.

> Apple restricts background processes for all third party apps to save battery life. It’s been this way since 2010.

This is a silly excuse. First, 3rd-party apps are restricted far less than the web is, it's not an example of Apple just applying the same rules everywhere. Second, 3rd-party apps don't need the same level of background access because they have reliable offline storage and their data gets synced to iCloud. Third, Apple doesn't need to give extensive background process access to web apps, it just needs to not randomly erase their data or fail syncing process.

Background updates are available to 3rd-party apps to a higher degree and with more reliability than are available to the web.

Finally, it's worth mentioning a detail that you glossed over here: 3rd-party apps. Part of the anticompetitive complaint against Apple is its privileging of 1st-party apps, both allowing them to collect more data than they should be able to collect and allowing access to privileged APIs that aren't available to other developers. This is part of the reason why Apple doesn't currently have a good solution for 3rd-party PWAs on iOS -- because they never built a security model. They just trust Safari to handle everything, which has led to some fairly embarrassing security vulnerabilities in the past. This lack of separation between the OS and 1st-party apps is part of the reason why privilege escalation bugs tend to be more serious in Safari than in other browsers.

I'm sure your take on this is that Apple is completely justified in giving its 1st-party apps access to capabilities that are not available even to other native apps, but the majority of us would call that anticompetitive behavior.

Not really relevant to the web but worth bringing up, this is not Apple's first time restricting competing platforms.

> You really think iOS users don’t have iCloud accounts? Have you actually ever tried to use an iOS device without an account?

Yes, I set up devices for my nieces without one, and I used a dedicated work Mac without one. Apple devices are very usable without accounts. It's not perfect, but it's impressive, Apple IDs really are fully optional for every Apple device I've ever seen or used.

Which, good on Apple for realizing that is an important use-case to support.

> You realize that Apple’s equivalent of Google Docs - the iWorks suite has synced across devices since 2010 don’t you?

Optionally. Also, wasn't restricted to only 50mb of data either. There's no comparison here, there is no strangled logic path for you to go down to pretend that native apps are not privileged over the web in this area.