dylan on Nostr: In my use-case I’m storing a push token associated with the users pub key so the ...
In my use-case I’m storing a push token associated with the users pub key so the user can receive push notifications for events that happen when they’re not in the app. I just read nip-78 but it seems not quite right for this particular use-case as I, on the server side, need to query my db for a set of users pubkeys to get their push token to send notifications?
Published at
2024-10-29 17:46:31Event JSON
{
"id": "45f470c021857c02e7036d3713772bfb43c2295c1609af420dc295460a48647b",
"pubkey": "963a2dca29e2ed5663a627b5289ed36d445531a3f5ef127716227d8a1aaa5166",
"created_at": 1730223991,
"kind": 1,
"tags": [
[
"e",
"bba6c46f311baec7a973b563c39d31f13ffbb9ecc1cd82afdad6c84318834d6d",
"wss://nostr.milou.lol/",
"root"
],
[
"e",
"5b696fafc77ab20734827d43174df799963356acb1244c35228a31821e959f3b",
"",
"reply"
],
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
]
],
"content": "In my use-case I’m storing a push token associated with the users pub key so the user can receive push notifications for events that happen when they’re not in the app. I just read nip-78 but it seems not quite right for this particular use-case as I, on the server side, need to query my db for a set of users pubkeys to get their push token to send notifications?",
"sig": "1b8fc4780d83aadfef9e29c398a3ee4d8e145075e3c327db5970d0adccb589aebb537564a8211b0eb961f53e834788a926ba721c0d33269a3bffb4a6c611ead5"
}