Eric Vitiello · @pixel
1891 followers · 4102 posts · Server social.pixels.pizza
Imdat :v_enby: :v_trans: · @imdat
499 followers · 902 posts · Server tau-ceti.space

Today, I will (hopefully) be finishing the whole Push Notification issue. We found out so many things about the legacy system by trying to implement push in the new clients, it is unbelievable…

There is so much history, so many things were done that are completely obsolete nowadays, it is amazing…

In the new client, you can set chat-specific notification sounds (so far it works on everything except Android), which were not available in the old clients. Since the server actually used to send the sound-name in the PN, we need to change many things in the server.

Also, the server actually used to tell the client what kind of message the PN was about: Group Invite, Private, Internal, Channel… The new client doesn’t care and doesn’t **need** to care. It seems it was their way to tell which message was higher priority…

For example, group invites were always shown regardless of the user’s setting wrt to “Do not disturb me”… Even if the sender was muted…

Aaaaanyway, lots of fun…

(hopefully)

#flutter #cicero #ginlo #ginlo_ii #ios #android #macos #windows #linux #apns #firebase

Last updated 2 years ago

Imdat :v_enby: :v_trans: · @imdat
496 followers · 826 posts · Server tau-ceti.space

Figured out why didn’t work. They are using the legacy Firebase-API (which is still ok). There, I need to use “content_available”: true and “mutable_content”: true if I want to send a silent PN to the client.

Since all our messages are E2E-encrypted, I MUST send silent PNs. It is also required that we use “priority”: “high”, in order to get *some* chance to get the PN delivered.

Luckily, I can use to test what format the PN-JSON has to be to be successful on .

Since the existing Firebase-Client in the legacy Java-Code wasn’t meant for iOS, I need to add these properties to the existing Java Code. So yeah, then, hopefully, it should work.

#ios #insomnia #firebase #flutter #apns #pushnotification

Last updated 2 years ago

Imdat :v_enby: :v_trans: · @imdat
495 followers · 821 posts · Server tau-ceti.space

So, yeah, second day of “Push Notifications”…

Android works, but there is so much to do there: I need to instantiate a big chunk of the main app int he second isolate, just for the PN to work *argh*

iOS: The problem with push notifications is you can’t really test it quite reliably. If you don’t receive it, what then? Why? Didn’t you receive anything or was nothing sent.

For information: This is how the flow works

Client sends message -> Cicero-Server receives it -> Cicero-Server informs Firebase -> Firebase connects to APNS -> APNS sends a message to other client

So:

C1 -> S -> FB -> APNS -> C2

But where in the chain it breaks you don’t know. The only thing for sure is that C1 successfully delivered to S.

(hopefully)

#worktopics #apns #cicero #ginlo_ii #flutter #ios #android #macos #windows #linux

Last updated 2 years ago