Supposedly Ghostty supports OSC9
printf '\e]9;Test notification\a'
Or OSC 777
printf '\e]777;notify;Title;Body text\a'
escape sequences to trigger push notifications.
I couldn’t for the life of me get it working on my iPhone. But when I switched to my iPad and ran it, the notification showed up on my iPhone. I'm however unable to get it working from the iPhone to the iPad so not sure what's going on. And then it’ll stop working on my phone, too. I’ve tried doing a sleep and then printing and quitting the apps but still nothing consistent.