I’m not familiar with the ios platform in HASS, however, for starters, I believe the “data” key under “message” should be “data_template” in order to use templating in data further down as you are in the “sound” key.
Alternately, you could set up two separate Automations, one for the garage door closing, and one for it opening, thus eliminating your need for templating inside the data passed to notify.ios_xxx_iphone.