2016-01-21 69 views
0

我實現我的手錶app..I切實可行的通知已經定義了我的通知有效載荷,但在我notifications..According蘋果文件我沒有收到可操作按鈕註冊手錶應用程序中的可執行通知?

Action buttons save time for the user by offering some standard responses for a notification. Apple Watch makes use of the interactive notifications registered by your iOS app to display action buttons. In iOS 8 and later, apps are required to register the types of notification-generated alerts they display using a UIUserNotificationSettings object. When registering that information, the app can also register a set of custom notification categories, which include the actions that can be performed for that category. Apple Watch uses this category information to add the corresponding action buttons to the long-look interface. 

我有一個簡單的問題是強制即使已經在有效載荷文件中定義了操作,也要註冊可執行的通知?

回答

0

您需要在代碼中將UserNotification設置和用戶通知操作設置爲。經過這個Link

相關問題