11 ms·
FirefoxPWA: Progressive Web Apps for Firefox
- IceDane 5y agoWhat exactly is the motivation for this project? I read the readme but I'm still at a loss. If my company chose to build PWAs, I would choose to use a browser that supports it in the way that is required. It would be totally bonkers to choose something like this just so that I can run them on firefox. Especially considering that this quite literally doesn't support half the feature set that might make PWAs desirable over a native app(like access to a lot of native APIs). Even if we wanted to build PWAs, and then for some weird reason needed to use firefox, then the lack of support for them in firefox would be more likely to lead to not building PWAs instead of trying to wrangle firefox into something it doesn't really support. What am I missing here?
- sph 5y agoMainly the goal is to create standalone Firefox apps, as a lightweight replacement to Electron apps, with their own permissions and desktop notifications. Chromium/Edge make this super easy, and I use it to create standalone versions of Youtube Music, Fastmail, YNAB, WhatsApp so that they share the same Firefox process, instead of having four separate Electron apps written by third-parties that are just a fancy way of wrapping a website in their own window And for some reason, Mozilla isn't interested of having this feature in their own browser.
- pgcj_poster 5y agoIn addition to developers, many web applications have users. If a website is available as a PWA, some Firefox users might want to install it.
- d3nj4l 5y agoIf you open Spotify in Chrome (or any Chromium browser), you'll get a little popup, like this: https://i.imgur.com/vw5diI2.png https://i.imgur.com/vw5diI2.png If you click "Install", you'll get an app-like Spotify icon, it'll show up in applications, you can Cmd+Tab/ Alt+Tab to it with its icon, so on. It's basically an app - but it's running in a separate Chrome window and managed by the browser. Electron but you don't have to install a copy of Chrome every time, basically. (Also, if you're like me and use Brave, this is better in every way.)
- indymike 5y ago> What am I missing here? Firefox does support PWA. This is a browser extension for packaging and installing like a native app. Pwa is a web spec and it is very nice.
- blowski 5y agoWe need to protest against how Apple cripples PWAs on iPhones. Sure some apps might be more efficient as native apps, but let me choose.
- woutr_be 5y agoI don't really follow the world of PWAs, what is Apple doing to cripple them on iOS?
- alfonsodev 5y agothis is 2020[1] state but you can make an idea, the most important one in my opinion is the friction that exists to add the app to the app list of your phone, you can't do it programatically is the user who has to go through the menus of iOS, it makes imposible to have a nice Web App Store and that's the biggest barrier for mass adoption in my opinion. - [1] https://simplabs.com/blog/2020/06/10/the-state-of-pwa-support-on-mobile-and-desktop-in-2020/ https://simplabs.com/blog/2020/06/10/the-state-of-pwa-suppor...
- The_rationalist 5y agoThe thing is, Ionic has none of those issues
- dbetteridge 5y agoCan only use Apples JS engine on iOS and they limit things like push notifications and background workers. Makes it difficult to get the full 'App' experience people expect
- fakename11 5y agoOP probably wants site to be to send notifications even though Firefox’s research on the topic has shown that they are 99+ percent spam. I find it very annoying when I visit a site and there's an annoying pop-up asking for notifications (even though chrome and firefox block most automatically). The Mozilla study showed that sites already try and show 100s of billion notifications to users a year "Notification prompts are very unpopular. On Release, about 99% of notification prompts go unaccepted, with 48% being actively denied by the user." https://blog.mozilla.org/futurereleases/2019/11/04/restricting-notification-permission-prompts-in-firefox/ https://blog.mozilla.org/futurereleases/2019/11/04/restricti... I also would bet that most acceptance clicks by users were accidental.
- thepra 5y agoI've been using this extension for a while, not bad so far but the big plus for me is the possibility to "install" any website as a PWA, making the website containerised and not messing with the normal browser (like Google cross logins) I've also dedicated a user guide to install FirefoxPWA for my own PWA but generic and easy enough for the average user I think, at: https://collanon.com/en/installation#firefox-desktop https://collanon.com/en/installation#firefox-desktop
- erickj 5y agoI've been running firefox like this manually for years. My method for this is basically just create a profile for any service I want to run standalone. Works great 1. Create a profile for the app you want to run...e.g. Spotify. Set the home bag 2. Create a startup file for your Firefox/Profile combo, e.g. $ cat .local/share/applications/Music.desktop [Desktop Entry] Categories=Music;X-AudioPlayer;AudioVideo;Spotify Exec=/usr/bin/firefox --class=musicplayer -P music Icon=Music-icon StartupWMClass=musicplayer StartupNotify=false Terminal=false Type=Application Name=Music Comment=Firefox music container
- chrismorgan 5y agoICE is a good way of doing basically this, including creating the profile and giving it a “hide everything” userChrome.css, when you use Firefox: https://github.com/peppermintos/ice https://github.com/peppermintos/ice
- thepra 5y agoLuckily this add-on makes this possibility effortless
- indymike 5y agoThis tool is named deceptively. It makes it sound like Firefox has broken or missing support for PWAs. Firefox has great support for pwas. My team shipped our app as a pwa in May and it was easy to do and works 100% in both chrome and Firefox. It appears this is more of a packager that tries to turn a website into a pwa and makes it install more like a native app. I may try it out, but the name is horrible and damaging to Firefox so I'll probably not ship until that name is changed.
- turbinerneiter 5y agoHow do I install a PWA on Firefox? Wanted to do that just yesterday to get offline Excalibur, but could not find a button. (Desktop, Fedora - in case that makes a difference)
- ryukafalz 5y agoIsn't being installable as an app kind of the most baseline feature of PWAs? To my knowledge desktop Firefox doesn't let you do that without an addon like this.
- manjana 5y agoIIRC Firefox did use to support installing of PWAs until about a year ago. It still boggles my mind why they dropped it.
- kgwxd 5y agoOT but, is anyone else having issues with Gmail and YouTube in FF after left open for, sometimes, just a few minutes? Lately for me, they stop refreshing properly and things like changing email folders or loading more comments as I scroll on YT just don't work and I have to refresh the page to fix it.
- sp332 5y agoI've had this problem with Voice pretty consistently, but gmail just slows down sometimes.
- Narishma 5y agoYes, I have this problem with Youtube in Firefox as well (on Linux if it makes a difference). I don't know about Gmail as I use the HTML view, which is much faster in general and only updates when you tell it to.
- stjohnswarts 5y agoNo problems and I do what you say all the time. I often leave youtube playing music in the background and it will play for days if I let it. Almost every problem I ever had in firefox I chased down to an errant plugin so turn off all your plugins (or start in safe mode) and go from there.
- thepra 5y agoI'm with you, I always leave YouTube open in Firefox for listening music and I have your same issues
- newacc9 5y agoLast I checked geolocation was still busted on FF Android when you actually "install" it and launch from the install-icon. Put in a bug report like 2 years ago. PWAs are ok for little internal widgets, but I couldn't recommend them for user facing stuff. For the uninformed, the principle reason to avoid PWAs is you need more granular control over the hardware than is available through a webAPI also indexeddb data will get deleted by Apple after a week for your privacy.
- neilsimp1 5y agoI've been doing this manually for a while by creating a FF profile for an app, adding some userChrome.css to hide some of the chrome at the top, and creating my own .desktop files to open FF in the new profile. It's a bit tedious but it works. I'd love to try this if I didn't have to use a FF extension to do it. It looks like it does it better than I have been doing it. Also the name should be changed.
- butz 5y agoHow hard would it be to work together with Mozilla to ship this functionality in Firefox officially? Their excuses not to work on SSB (that's what they called installing web apps to desktop) were: 1. "no perceived user benefit" and 2. "feature is costing us time in terms of bug triage". Evidently, some users and developers find mentioned feature useful, because many projects like FirefoxPWA exists. Get other projects that are trying to achieve the same goal on board (Web App Manager from Linux Mint comes to mind) and everybody wins. As an added bonus, Firefox might even increase their user base a little.
- skinkestek 5y agoSometimes it is hard not to think that this is part of the deal with Google: Mozilla gets $500m - in theory for having Google as the default search engine - I reality to just to not challenge Chrome. Anyone have a good explanation for why this isn't true?
- 1_player 5y agoHanlon's razor. It ain't malice, just plain incompetence.
- wolverine876 5y ago> Anyone have a good explanation for why this isn't true? The burden of proof is on the person making the assertion. Newton didn't say, 'F=ma - Anyone have a good explanation for why this isn't true?' Otherwise, all we'll do here is disprove conspiracy theories and propaganda.
- WallyFunk 5y agoHow is a PWA different from adding a site to your homescreen?
- tommek4077 5y agoIt is a glorified bookmark. But the JavaScript kids like how some of there scripts still run offline. As long as you don't use their website in any normal way, like clicking anywhere.
- blowski 5y agoThere's the rather big deal that it also allows me to access APIs that I can't access from a normal website - like vibrate, notifications, storage, authentication, bluetooth, orientation, network info, motion, speech recognition, NFC, contacts.
- thepra 5y agoAdding as a bookmark doesn't get rid of the search bar and doesn't fill the top notification bar with the same colour as the app sets in the <head>. And there isn't a real flow that does explicitly say "Install" which is crucial for the final user to understand. And overall after PWA installation the screen is filled with app alone in a clear and native looking way.
- skinkestek 5y agoThis is a brilliant start. Maybe rename it to avoid annoying Mozilla unnecessary. I'm one of those who want a softfork(?) of Firefox: a set of patches on top of official Firefox that keeps getting expanded until it eclipses the official Firefox. I already tried to donate but failed.
- floatingatoll 5y agoThe problem with soft forks is that virtually no one wants to maintain HTML rendering or implement CSS color for fun, and eventually when the underlying engines change, the soft forks have to keep up, leading to the same sort of complaints that we see about macOS requiring significant annual reworks.
- maccolgan 5y agoThere's serious need to augment Firefox, it has been years and they still haven't figured out how to let users ergonomically select a new tab page. Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1409675 https://bugzilla.mozilla.org/show_bug.cgi?id=1409675 & https://bugzilla.mozilla.org/show_bug.cgi?id=1460412 https://bugzilla.mozilla.org/show_bug.cgi?id=1460412
- brutal_chaos_ 5y agoFirefox, thanks to "Firefox Lockwise" and other Mozilla products, is now a brand name, not just a browser name. The product title sounds like it came from Mozilla, which is probably not ok.