4 ms·
There's also PWA, which while not perfect, is supported on iOS.
by fooqux 11mo ago
There's also PWA, which while not perfect, is supported on iOS.
- theK 11mo agoPWA was an awesome idea and should have been the way forward. Unfortunately both Google and Apple very early on identified that it was in their best interest to keep the concept around in a half-dead state and ensure nobody really built on it...
- candiddevmike 11mo agoGoogle seems to be all in on PWAs, they even have a way to monetize them in the play store via TWAs.
- theK 11mo agoAdmittedly I am not up to date on the latest developments but as far as a couple years ago the PWA runtime on both ecosystems was significantly stymied in comparison to the APP runtime. No access to real storage functionality, significantly less platform APIs, yada yada. Sure, you could build "better (installable) websites" but even to get standardized stuff like background execution or notifications working was either impossible or a long series of jumping through hoops. Even installation prompts bugged out way too often. But to be clear, if that isn't the case any more I will be positively surprized by either platform provider.
- mmis1000 11mo agoPWA on android's side is at least usable. You get notification. You can autoplay video/audio. You get whaterver video or element full screen with all necessary UI. You get rotation lock. You have a fullscreen to do what ever you want for any purpose. You probably can't touch hardware APIs(for example: bluetooth/nfc) like native app. But that isn't really needed for most apps either. On the other side. Apple seems sabotage the PWA as much as possible. You can't autoplay video/audio. You can't even fullscreen anything other than video, and when fullscreen video, UI is ignored. Also there is no way to disable gesture so your app will misfire system gesture. And you can't lock the rotation either. There is no way to auto rotate the video player or whatever when maximized either. It's really a golden example for pretend to do something while actually not. It seems you can do pretty much everything with ios pwa. And when you try to do it. You will figured out it will have a worse experience than native app because all sort of issues.
- popcornricecake 11mo agoTo be fair, Android also sabotages PWAs, it's just done behind your back. You see, in order to get a PWA to properly install, you'll have to use Chrome, and you'll have to have a Google Play account and Chrome will submit the PWA manifest for validation to a Google server, which in turn will decide whether the PWA is worthy, and if it is, it will generate a so called WebAPK, which is then installed on your device. If it's not worthy however, then it will become a bookmark instead, and many of the features that can be described in the manifest will not work at all. So if you wanted to use a different browser or install a PWA without a connection to the internet, or without Google Play, all you get is a bookmark.
- mmis1000 11mo ago> in turn will decide whether the PWA is worthy In my personal experience, it only validate whether manifest is malformatted though. Although it's still up to google if they want to do something wonky.
- popcornricecake 11mo agoI saw someone claim on SO that they were not able to get a PWA to install properly until they changed their IP address, supposedly because they were from Iran, a sanctioned country.
- daveoc64 11mo agoOther browsers on Android support PWA, such as Firefox.
- popcornricecake 11mo agoTo my knowledge, every PWA installed from Firefox on Android will become a bookmark. For Firefox I believe that means for example that if you try to open a link elsewhere that is within the manifest scope, it will not open in the PWA. That's because it's not possible to deep link to the PWA without it having an AndroidManifest with a corresponding intent filter, which is what the Chrome WebAPK achieves and why they can support for example custom protocol handlers or share targets or launch handling options.
- alternatex 11mo agoGoogle invented PWAs and broke their back trying to make them a thing. I'm not a fan of Google but credit where credit is due. They were also highly incentivized to develop the APIs that make it all work as Chromebooks are basically hosts for browser apps. Apple, as well as the other tech giants involved in the W3C had no such incentives and were dragging their feet.
- pjmlp 11mo agoPWAs are a pain to develop, with tons of boilerplate.
- candiddevmike 11mo agoWhat? It's less boilerplate than native apps.
- pjmlp 11mo agoNative apps are offline by default. PWAs require a ton of JavaScript junk to simulate that.
- saagarjha 11mo agoAs opposed to Swift junk?
- pjmlp 11mo agoSwift doesn't need a service worker to proxy all browser behaviour, and make use of local storage, with unspecified limit, to prentend to be working offline.
- saagarjha 11mo agoYou do realize that there are many APIs that exist so that your Swift app works offline, right? There are specific persistence frameworks, tools for controlling caching, extensions for managing external files, etc. The argument that writing JavaScript that doesn’t make network requests and needs to store state to disk is somehow super special and different than any other regular JavaScript makes no sense.
- pjmlp 11mo agoYou do realise using Swift doesn't require having a network card on your laptop to run 100% of all applications compiled with swiftc?
- jauntywundrkind 11mo agoI respect PWAs, but they take away so much that I personally want. No address bar, no tabs, no history, no extensions. It's a reversion from the glorious amazing user agency of the web to the sad state that computing had held us victim to for decades.
- depressedpanda 11mo agoI have good news for you: if you prefer running a PWA in your browser of choice, you can. Nothing forces you to install the PWA.
- jauntywundrkind 11mo agoGenerally true yes. Solid point! (Unless you are on iOS, where a variety of capabilities are only given to PWAs.)