@dansup why not just encrypt the notifications?
7 comments
@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 awayLyyn ☮️🦄 #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.
[DATA EXPUNGED]
dansup, just write your own code to do it. Stop relying on libraries so much to do things for you. |
@thisismissem I will eventually, I don't know if Expo even supports that, because that is what I'm using for now.