A random person on lemmy

Banner art from Deemo switch version

  • 13 Posts
  • 23 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle
  • It is planned but it probably will take a while to implement since lemmy doesn’t support webpush api. Without web push their are only two ways to check for notifications (both aren’t elegant):

    1. Poll the lemmy api for new messages (say every min). This would be bandwith intensive for both voyager servers and your lemmy instance (Memmy does this and currently for 800 users 3gb of bandwith is used per day). Even if voyager is able to scale there servers to handle bandwith lemmy instances could impose rate limits which would prevent notifications from coming through.

    2. Set up a weird janky system to intercept emails sent from lemmy instance to trigger a voyager server to ask the api if there are any new messages (would reduce poll rate but would be super clunky to setup).

    Web push api could solve this issue since instead of voyager having to ask lemmy if their are new messages web push allows the opposite to happen (lemmy telling voyager a new message has arived).

    https://github.com/LemmyNet/lemmy/issues/3552














  • A bit of a problem Lemmy doesn’t support background push notifications (when not opened in browser tab).

    Currently apps like memmy rely on a server to poll Lemmy servers (say ever min) to check for new messages then relay a push message.

    Problem is this isn’t very scalable (dev reported 3gb of bandwidth used for only 800 accounts).



  • Deemo@lemmy.fmhy.mltowefwef@lemmy.worldApp Store
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    My only currently gripe with wefwef being a pwa is on iOS their is no deep link support.

    I have a push notification setup which uses a MacMini apple mail app with apple script, shortcuts, and ntfy to create push notifications.

    sample notification

    On Android pwa’s deep link aka it I can make ntfy directly open wefwef unread inbox upon clicking.

    On iOS however pwa’s can’t deep link nor can be opened by shortcuts. The closest work around I have is calling a shortcut to open wefwef to open WebView (which unfortunately means manually updating two instances of wefwef on iOS).

    Using say a pwa wrapper to make a hybrid iOS web app could fix this.

    Although on the other hand if wefwef obtains push notifications then deeplinking may become a moot point















  • Maybe an option could be add to prompt a change log (wefwef has been updated) and maybe make it optional to view?

    I kinda use wefwef in a weird way I have it installed as a pwa on my ipad and also have it signed in on ios web view via discord (I use monito rss to act as pseudo push notifications). Unfortunatly unlike android their isn’t a way to have links auto open in the pwa (atleast to my knoweledge). This leads to an issue of having to update more than once.

    I know this probably nich case though and probably might be irrelevant once push notificaitons are implemented in the future

    Edit some images of this janky solution 🫠

    ios discord notification preview

    ios discord channel

    ios discord webview in discord