Remix.run Logo
▲ achempion 4 hours ago

It'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'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).

▲boundlessdreamz 2 hours ago | parent | next [-]

How do you trigger that in iOS? iOS can decide not to trigger it all from what I have read - https://mertbulan.com/dont-rely-on-bgapprefreshtask-for-your...

Even Android is not predicatable from my testing or I'm doing something wrong

▲achempion an hour ago | parent [-]

I assume the only way it to be a good citizen: an app someone uses often, app itself is low cpu/memory, BG app refresh quick/cheap/doesn't drain much energy.

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

▲mawise 2 hours ago | parent | prev [-]

What's your app? I'd love to try it out!

▲achempion 2 hours ago | parent [-]

TUI + iPhone: https://github.com/achempion/tlx