-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Desktop app #2825
Desktop app #2825
Conversation
mxstbr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start already!
The main big change I (with no Electron experience) can see here is that we really want the frontend to be bundled into the Electron app, rather than loaded as a remote URL, right?
|
Yes I think loaded as a remote URL it's a good idea, because the app is universal and we do not want to ship node server with the app imo |
We don't need to ship a Node server with the app if we bundle the frontend into Electron, since it'll just query api.spectrum.chat, right? |
|
Yes my bad you totally right |
2a9ad8b to
799681b
Compare
|
problem solved, we need to disable Electron's Node integration. |
make code smart remove useless package use the prod optimized build when not in dev mode optimze electron dev create packager script for mac add electron app icons disabled nodeIntegration add packager script for linux add packager script for windows create electron app
613212a to
c24da14
Compare
|
I rebase my PR for more more clarity.
I still have to work on the autoupdater. |
|
Amazing—I'll test this locally! |
This will require us to host some sort of server, right? I heard some folks are using GitHub releases for that purpose, is that an option for us? |
|
We can use GitHub Releases, Amazon S3, DigitalOcean Spaces or generic HTTP(s) server). I think GitHub Releases is a good option for us. Maybe @nikgraf who seems to have a very good xp in electron can help us on this ? |
|
OK the real things begins !! I rename the folder from I had to move previous scripts from The only thing I do not like is that the You can test now. |
|
Oh the last thing to do is application code signing |
Generated by 🚫 dangerJS |
|
I'm tackling push notifications, let's get this ready to be beta tested! ✌️ |
My initial idea was to use our existing NavBar component, which is already listening to new notifications, and to show push notifications from there. That was way more complex than necessary honestly, so I just manually listen to the subscriptions in `src/index.js` and it's working super well. This now shows push notifications for all desktop users! 🎉
|
The latest commits implement push notifications in the desktop app! 🎉 TODO BEFORE MERGING
|
|
I think this is pretty much ready! @brianlovin mind giving this a last code review, then doing a prod push with the frontend changes of this branch? As soon as those are live, anybody who has a build of the desktop app should start seeing push notifications (if the app is open) 🎉 |
|
Prod cut incoming! |
|
Thanks so much @spartDev - this has been awesome to use so far |


Status
Release notes for users (delete if codebase-only change)
closes: #257