damus icon indicating copy to clipboard operation
damus copied to clipboard

Setup push notification relay

Open jb55 opened this issue 2 years ago • 3 comments

Now that we have push notification support I need to set this up on our server

jb55 avatar Nov 17 '23 14:11 jb55

This will take a serious refactoring on our server. Will have to move to nginx, letsencrypt, etc

jb55 avatar Nov 21 '23 18:11 jb55

Everything is in place for this now, adding it to the sprint

jb55 avatar Mar 16 '24 09:03 jb55

This will take a serious refactoring on our server. Will have to move to nginx, letsencrypt, etc

not sure why I said this, I don't think its the case anymore

jb55 avatar May 20 '24 19:05 jb55

While working on this, I ended up needing to do a big detour as I realized our current implementation does not handle APNS server authentication properly.

After much research and debugging, I was able to get JWT token authentication working between our relay and the real Apple APNS server (I previously relied on getting a JSON payload from a mock APNS server and pasting it to an APNS test tool), so I got the full communication pipeline from relay to on-device push notification working.

However, I still need to clean up some code as I needed to do some substantial changes.

danieldaquino avatar Jun 26 '24 23:06 danieldaquino

On Wed, Jun 26, 2024 at 04:36:58PM GMT, Daniel D’Aquino wrote:

While working on this, I ended up needing to do a big detour as I realized our current implementation does not handle APNS server authentication properly.

After much research and debugging, I was able to get JWT token authentication working between our relay and the real Apple APNS server (I previously relied on getting a JSON payload from a mock APNS server and pasting it to an APNS test tool), so I got the full communication pipeline from relay to on-device push notification working.

However, I still need to clean up some code as I needed to do some substantial changes.

sounds good, thanks for the update!

jb55 avatar Jun 27 '24 00:06 jb55

Sent the patch to get APNS authentication working! https://groups.google.com/a/damus.io/g/patches/c/w8qnQYiylsA

@jb55 please let me know if any improvements to the patch are needed! Thank you!

danieldaquino avatar Jun 29 '24 04:06 danieldaquino

@jb55 Sent a simple damus iOS app patch to point to the current device token server: https://groups.google.com/a/damus.io/g/patches/c/n99vO4d8ES8

I also setup other things required in the server to get this up and running.

danieldaquino avatar Jul 02 '24 02:07 danieldaquino