r/Android • u/luag • Feb 03 '19
Google Play Store now open for Progressive Web Apps š±
https://medium.com/@firt/google-play-store-now-open-for-progressive-web-apps-ec6f3c6ff3cc28
u/CCB0x45 OP7P Feb 04 '19
Wow nice, good news for us web devs.
3
u/winterblink Feb 05 '19
I guess. I still have no idea how I'm going to find your PWA, is there a new category in the store where those of us seeking these types of apps can use to get a list?
3
u/CCB0x45 OP7P Feb 05 '19
I would guess it would show up in the search with all the other apps.
2
u/winterblink Feb 05 '19
Sure, but I would also like to see a section of just PWA applications so I can explore what's out there. I like the idea of running across them naturally too, but I would also like to see what apps I could outright replace with their PWA variants.
33
u/Flatscreens Sony Xperia 5 IV Feb 04 '19 edited Feb 04 '19
As a primarily JS dev a future where all apps run js in an optimized chromium window sounds amazing.
On the other hand, this sounds a lot like what electron tries to do, and I don't want a flood of unnecessarily resource intensive apps (looking at you, Slack and LoL client).
18
u/ffffound Feb 04 '19
If Electron (really, Chromium) wasn't so resource intensive it would be so much better. That's really one of the biggest drawbacks, other than some apps feeling too web-y.
9
u/Pycorax Z Fold 6 Feb 05 '19
This so much. Discord claimed to be light on the CPU and memory but recently it seems to be taking more and more to the point where my games run so much better with it closed.
Also as a dev, I'm not a fan of the whole JS everywhere thing. It's not a language built for that purpose. Stuff like TS makes it better but it's like sticking a bandaid over it instead of solving the root issue.
9
u/HJain13 iPhone 13 Pro, Retired: Moto GāµPlus, Moto X Play Feb 04 '19
VSCode is based on electron and is absolutely the best code editor I have used in years. Electron/Chromium (extremely different) aren't the same thing
13
u/ffffound Feb 04 '19 edited Feb 04 '19
VSCode has a lot of plugins, sure, but itās nowhere near as fast as Sublime Text 3. Mind you, this is from a heavy VSCode user with about two dozens of extensions installed. The difference between them with no extensions in terms of startup speed is incredible.
VSCode also feels like a web app, with the reloading of panels. When switching between the file tree, git, extension panel, etc.
I know Electron and Chromium are different things, but Electron does use a Chromium base.
4
u/HJain13 iPhone 13 Pro, Retired: Moto GāµPlus, Moto X Play Feb 05 '19 edited Feb 05 '19
But there is more to a Text Editor than startup times, ofcourse Sublime does have faster performance, no denying that but VSCode is a little bit slow doesn't mean it isn't great. Being fast is only required until the speed crosses the threshold of diminished returns. For example: vim, emacs are faster than Sublime but that doesn't equate to it being Bad.
And sure electron is based on chromium, but so is node.js and it's faster than python (server side) so does that negate python as a serious tool for developers? IMHO no
Edit: also what's the problem with Reloading if configuration change, it surely is better than abrupt changes or restarting app itself of some native counterparts
1
u/TeutonJon78 Samsung S25+, Chuwi HiBook Pro (tab) Feb 04 '19
True. It's a sound idea that isn't being executed well. CEF is just too RAM hungry.
7
u/Carighan Fairphone 6+š³ Feb 04 '19
Well yes, but sadly the performant-apps-over-non-OS-fitting-web-design ship sadly sailed years ago.
1
13
u/glanfr Feb 04 '19
Might be good for web devs but I don't like the security model.
"Your PWA will run under the browserās security model, not under your native app oneāāāunless you add native code as well to your APK. Because the Activity will be managed by Chrome, the user should we [sic] aware that even if she has just installed the app, she might have session data, local storages and permissions already set for that host."
If use of PWAs becomes wide spread I have trouble seeing how this wont confuse users from a permisions point of view. If a user wants to control the permissions of the PWA to access contacts for example would they not then need to deny the permission to chrome itself? How would an ordinary user navigate this kind of split permissions system? Overall I prefer regular over pwa.
6
u/Pycorax Z Fold 6 Feb 05 '19
W10 does it the native way for PWAs so its definitely not a limitation of PWAs in general. Not sure why Google went with this method.
1
u/glanfr Feb 05 '19
It's possible I'm making a bad assumption based on limited info as well. Readin through this page it seems like there are restrictions or standards on permissions:
"Managing permissions
Permissions work in the same way as other web apps and cannot be requested at install time, instead they must be requested at run time, ideally only when you really need them. For example, don't ask for camera permission on first load, but instead wait until the user attempts to take a picture.
Note: Android normally grants immediate permission to show notifications for installed apps, but apps installed via WebAPKs are not granted this at install time, you must request it at runtime within your app."
1
u/Pycorax Z Fold 6 Feb 05 '19
This seems more like how it should be but it contrasts to what is mentioned in the OP though. The installation methods for these 2 are different so maybe they're using something completely different in their backend?
2
1
15
u/Danda_Nakka Feb 04 '19
Awesome news for web devs.