So I have push notifications sending to my application.
The code that triggers the alert is in my app delegate file (I think thats where it is supposed to go?)
To change the title of the button, use the action-loc-key key in the notification dictionary (see this section of the guide).
action-loc-key
To do something when the notification is tapped, you can implement a few methods in your app delegate: Handling notifications.