aeharding / voyager

Voyager — a mobile-first Lemmy client
https://vger.app
GNU Affero General Public License v3.0
1.41k stars 166 forks source link

Push notifications #1027

Open aeharding opened 6 months ago

aeharding commented 6 months ago

Is your feature request related to a problem? Please describe.

I have to open Voyager to see if I have new Lemmy notifications.

Describe the solution you'd like

Push notifications.

Describe alternatives you've considered

Opening the app like a pleb

Additional context

Ideally Android, iOS and PWA, but minimum would be native app only.

aeharding commented 6 months ago

Please note this is currently blocked until https://github.com/LemmyNet/lemmy/issues/2631 is addressed.

Currently, the only ways for apps to implement this is to 1) store users' Lemmy authentication tokens on a server that app devs own. To me this introduces an unacceptably high security liability. Or 2) to setup a background task to periodically refresh. It would require the server to poll lemmy instances for notifications, which increases server load/cost both for me an the lemmy instance, which is not ideal, and also reduce battery life on device.

Once https://github.com/LemmyNet/lemmy/issues/2631 is implemented we can create a Voyager relay such as https://github.com/metabolist/metatext-apns which is a lot more secure and scales better!