I would assume that text message notifications are generated locally on the device when it receives an SMS message.
Reply on news.ycombinator.com