0xchat on Nostr: I haven’t solved this problem yet. Right now, the push notifications sent to ...
I haven’t solved this problem yet. Right now, the push notifications sent to clients are just something like: “You received a private message.”
I do have a potential solution in mind: the push notification could include the eventid. Then, once the client receives the notification, it could activate for a short period of time to fetch the event, decrypt it, and display the actual content to the user.
However, I haven’t implemented this approach yet — it still needs to be tested and verified.
Published at
2025-06-12 21:55:55Event JSON
{
"id": "d86d4b4df2bd80c0e85451912975635d7886c4b68e627a860ff8bda660fc3f01",
"pubkey": "5eca50a04afaefe55659fb74810b42654e2268c1acca6e53801b9862db74a83a",
"created_at": 1749765355,
"kind": 1,
"tags": [
[
"e",
"1bbd7c6c98f045ff20fc2a2afc99250a8f7c6808d587791b545f25ebd5c76a29",
"wss://relay.damus.io/%20wss://relay.notoshi.win/%20wss://nos.lol/%20wss://relay.siamstr.com/%20wss://relay.0xchat.com/%20wss://nfrelay.app/%20wss://relayrs.notoshi.win/%20wss://relay.nexterz.com/%20wss://fenrir-s.notoshi.win",
"root"
],
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"",
"mention"
],
[
"p",
"7adb520c3ac7cb6dc8253508df0ce1d975da49fefda9b5c956744a049d230ace",
"",
"mention"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"",
"mention"
]
],
"content": "I haven’t solved this problem yet. Right now, the push notifications sent to clients are just something like: “You received a private message.”\n\nI do have a potential solution in mind: the push notification could include the eventid. Then, once the client receives the notification, it could activate for a short period of time to fetch the event, decrypt it, and display the actual content to the user.\n\nHowever, I haven’t implemented this approach yet — it still needs to be tested and verified.",
"sig": "4e1805a653a178c52c9c9497846db14fc03a082174c61436fd7257b9c54df622dc9a370fd8d9b73179a9861d4d5047cde2f92895b34458fd64f9d3f3e25c1107"
}