Email or username:

Password:

Forgot your password?
7 comments
dansup

@thisismissem I will eventually, I don't know if Expo even supports that, because that is what I'm using for now.

Lyyn ☮️

@dansup @thisismissem I am not sure how it works in the Apple ecosystem, but on Android the solution most apps use is sending just a ping in the push message, and then the app fetches everything it needs and displays the notification itself. It adds some latency, but not very noticeable.
I really think that what Google and Apple calls push notifications (where the push message actually contains all the data for the notification) is a bad thing and should not be generally used. Especially because it's really inconvenient to encrypt.

@dansup @thisismissem I am not sure how it works in the Apple ecosystem, but on Android the solution most apps use is sending just a ping in the push message, and then the app fetches everything it needs and displays the notification itself. It adds some latency, but not very noticeable.
I really think that what Google and Apple calls push notifications (where the push message actually contains all the data for the notification) is a bad thing and should not be generally used. Especially because...

alina 🌸

@lyyn@mastodon.ml @dansup@mastodon.social @thisismissem@hachyderm.io

> ping in the push message, and then the app fetches everything it needs and displays the notification itself

yeah afaik on ios that requires a special entitlement by apple which they are quite unwilling to give away

Григорий Клюшников

Lyyn ☮️🦄 #2024-02-16, Mastodon's push notifications work by sending the data in the notification itself, encrypted by your server. This makes it more reliable than just a ping that "something happened" that would make the app do an API request to retrieve the actual notification.

Unfortunately, you can't sidestep the need for a centralized notification service if you care about battery life, which I imagine most people do. So end-to-end encryption will have to do.

[DATA EXPUNGED]
Григорий Клюшников

Lyyn ☮️🦄 #2024-02-16, if your network connection is unstable, e.g. due to a weak signal or being on a subway train, there might not be a chance to do that request. You have to always assume that any network request can fail, and given enough users, it will fail, every day, thousands of times. So if you can avoid making an additional request, do avoid it.

Григорий Клюшников

dansup, just write your own code to do it. Stop relying on libraries so much to do things for you.

Go Up