5 ms·
Seems like a web interface that can use bluetooth. That's precisely what it is. Accessing bluetooth devices from a progressive web app affords a lot of interes
by onion2k 7y ago
Seems like a web interface that can use bluetooth.
That's precisely what it is. Accessing bluetooth devices from a progressive web app affords a lot of interesting new functionality for web app developers.
Was this previously impossible or something ?
Web bluetooth has been around since Chrome 42 behind a flag, but it's only recently appeared in other browsers so maybe now is the time to start taking an interest.
- xxs 7y agolook even at the examples: you get endianness and protocol parsing/composition, coupled with "string" based enumerations + promises - no special error handling, etc. It feels such a mess to program with.
- Nursie 7y ago> Accessing bluetooth devices from a progressive web app ... Does anyone actually use progressive web apps?
- dspillett 7y ago> Does anyone actually use progressive web apps? Yes, is the correct but perhaps overly terse answer. A more useful answer depends on exactly what you mean by PWA, as there are several common interpretations of the term.
- Nursie 7y agoThe "Embed this on your home screen" aspect is what I was interested in, I guess. Personally I'm not really interested in routinely circumventing my mobile platform's app store, nor do I really want more clutter. Plus it seems like a lot of the sites that have the capability are just trying to push their brand in the same sort of way they did by having their own apps a few years ago - newspapers and other information sources which are just fine in the browser.
- dspillett 7y ago> Embed this on your home screen That you can do manually with any web page (that isn't badly designed) as it is essentially just an icon that opens the page when selected. The only real difference IIRC is that it looks like a separate app (in your task list etc.) instead of being a browser tab and having less browser chrome. Another common use for the features that come under the PWA banner are local storage and running options, which reduce transfers to/from the server(a) and allow offline working. There are a few apps I use that work this way and you don't notice that they are anything other than a simple web app until you find yourself properly disconnected for a time and they still work.
- Nursie 7y agoIn the first instance, I don't have site bookmarks on my home screen, my browser can store those just fine. The second instance sounds like something that should be an actual app, installed from a trusted source, if it has access to storage and other device features. Particularly if it can run in the background, issue notifications etc etc.
- dspillett 7y ago> I don't have site bookmarks on my home screen But many people do. I have a couple of shortcuts to common pages on my phone's home screen (well, a folder there on) just as I have shortcuts to certain files that I regularly interact with on the device instead of going to the app and manually opening them from there. > sounds like something that should be an actual app, installed from a trusted source Why, when it isn't doing anything the web app can do anyway. LocalStorage isn't a PWA-only feature, nor is notifications, and both have a least some gates to access (LocalStorage should limit the amount stored, prompting the user as a soft quota is reached as well as having a hard quota, and sandbox sites from each other, notifications asking for permission before they are enabled). I assume other features like bluetooth access are similarly gated, so there is no less protection than found in app store apps. Why make me install an app on my phone as well as using the site on desktop/laptop, and make the developers write both, when the website based application can perform both roles? There are sensitive permissions that I wouldn't want to grant a PWA (access to my contacts for instance, access to other apps files) of course, not being able to be globally disabled if found to be malicious as is possible with an app-store based install makes that more dangerous. But with careful control PWAs can be very useful without being any more problematical than any other web app.
- pauly 7y agoI definitely do for something I want to write myself, that behaves like an app, but has zero entry barrier. I am adding PWA best practices to everything I do now "just in case", still not quite sure if it's going anywhere, maybe it is only me. I wanted a "packing reminder" on my phone so I made https://paulypopex.gitlab.io/holiday-reminder/# https://paulypopex.gitlab.io/holiday-reminder/# and it works for me.
- neoeldex 7y agoDo you use any of these in a browser: facebook, instagram, youtube, gmail, whatsapp, github, gitlab?
- Nursie 7y agoOn my mobile device, yes, facebook. Specifically because I won't allow fb apps to install themselves on any of my devices. On my laptop, yes I use some of the others. Mostly gmail and github, of those.
- deleted 7y ago[deleted]