There's also a slight caveat, you can't use push_redirect with push_notification, because push_redirect doesn't work with push_event (which is what push_notification uses under the hood). For that reason, Backoffice provides a callback so you can still do redirection, just do push_notification(socket, redirect: url).
This is relevant, it doesn't "survive a live_direct" is not exactly true, more accurately, the push_event isn't even fired in the first place, because of the push_redirect. Not sure where to go from here..
Video: https://cln.sh/1dS7AJ
There's also a slight caveat, you can't use
push_redirect
withpush_notification
, becausepush_redirect
doesn't work withpush_event
(which is whatpush_notification
uses under the hood). For that reason, Backoffice provides a callback so you can still do redirection, just dopush_notification(socket, redirect: url)
.