For push notifications: how do I add action to alert view to change views?

前端 未结 2 759
时光说笑
时光说笑 2020-12-20 06:15

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?)

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 06:39

    To change the title of the button, use the action-loc-key key in the notification dictionary (see this section of the guide).

    To do something when the notification is tapped, you can implement a few methods in your app delegate: Handling notifications.

提交回复
热议问题