‹ BackHN Continuity

Thread

Breaking Up with Google Play: Why Conversations Is Now Free

708 points · 296 comments · ezst

  1. mawise · · focus · HN ↗
    I get excited every time I learn about another E2EE messaging app where the server can be self-hosted. But as I understand it, the server that triggers push notifications for any android app must be hard-coded into the app's binary. Are there any good architectural workarounds for this? I've read a little bit about VAPID[1] but I don't know if it is actually a viable approach and I don't think I've ever seen it promoted in an E2EE messaging app with a self-hosted server.

    [1] (Disclosure: the AI gave me this link) <a href="https:&#x2F;&#x2F;unifiedpush.org&#x2F;news&#x2F;20250131_push_for_decentralized&#x2F;" rel="nofollow">https:&#x2F;&#x2F;unifiedpush.org&#x2F;news&#x2F;20250131_push_for_decentralized...

    1. achempion · · focus · HN ↗
      It&#x27;s possible for the app to poll the server for new messages. iOS also supports light background work that can poll server from time to time and trigger notification on the device, rather than using apple&#x27;s push notification infra.

      The trade off is that you gain some extra privacy with simpler architecture and accept that some notifications will be delayed as ios decides when to run the bg job for the app.

      source: I develop e2e app with self-hostable server (145 lines of zero deps python for the whole server).

      1. boundlessdreamz · · focus · HN ↗
        How do you trigger that in iOS? iOS can decide not to trigger it all from what I have read - <a href="https:&#x2F;&#x2F;mertbulan.com&#x2F;dont-rely-on-bgapprefreshtask-for-your-apps-business-logic&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mertbulan.com&#x2F;dont-rely-on-bgapprefreshtask-for-your...

        Even Android is not predicatable from my testing or I&#x27;m doing something wrong

        1. achempion · · focus · HN ↗
          I assume the only way it to be a good citizen: an app someone uses often, app itself is low cpu&#x2F;memory, BG app refresh quick&#x2F;cheap&#x2F;doesn&#x27;t drain much energy.

          But yeah, if you need a predictable way is either APN or safari push notifications.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.