-
-
Notifications
You must be signed in to change notification settings - Fork 136
Description
Hi, reviving #237 because it seems possible to generate the ID which makes notification deeplinks easier to 'action' after opening.
gitify-app/gitify#519 shows another project implementing the token as effectively:
btoa(`018:NotificationThread${notificationId}:${userId}`)
I've noticed that the notifications page is using a different format now, and I built this expression for it, though I'm not sure what the 6 leading bytes represent:
'NT_'+btoa(`\x93\x00\xCD\x9E\xB4\xB0${notificationId}:${userId}`).replace(/=+$/, '')
Both of these expressions create working tokens for me. I'd like to confer with another user about the binary in the newer tokens to see if it's the same for everyone. But the old tokens seem pretty straightforward to try out too!
Of course, it's possible that the tokens will change / stop working someday, and it should leave the tool back at the current functionality. So it seems reasonable to try.
The only other complication is getting user id. Either letting the user opt-in to the feature by adding a User ID box in settings, or asking for a scope that will include the user endpoint.
If this feature is still considered out of scope for the project, I apologize for the noise! I installed this tool a couple days ago and have been really enjoying the UX of the desktop notifications. Being able to hit 'done' too would make it that much better.