且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

tvOS中的Apple Push通知

更新时间:2023-12-03 16:40:16

tvOS仅支持两种通知类型:badgescontent-available.因此,您需要将这两种类型之一发送到APNS.这些类型的通知中的任何一种都只会更改应用程序图标"上的徽章编号.当您打开应用程序时,只有最新的通知会传递到您的应用程序.没有像iOS那样直观的通知形式 从 WWDC 2016/Session 206/tvOS的演示中看,它从21点开始观看: 20

tvOS supports only 2 types of notifications: badges and content-available. So you need to send one of these two types to APNS. Any of these types notification only changes badge number on App Icon. And only the lastest notification will be delivered to your application when you open the app. There is no visual presentation of notification as it was on iOS How it looks see on presentation from WWDC 2016/Session 206/tvOS, start watching from 21:20

更新: 在tvOS 11上出现了Silent notifications,它可以唤醒应用程序并允许在后台刷新内容

UPDATE: On tvOS 11 appeared Silent notifications which wakes the application up and allow to refresh content in background

WWDC 2017观看时间为7:50