2017-04-15 242 views
5

我知道本地通知的限制爲64,UILocalNotification。它寫在Apple Dev Docs。但UILocalNotification已在iOS 10中棄用。相反,Apple建議使用UNNotificationRequest。但Apple Dev Docs沒有說任何關於限制通知計數的內容。 我發現這個answer,但它沒有鏈接到Apple Dev Docs或類似的東西(這只是一個意見)。 有誰肯定知道本地通知的限制嗎? 也許有人知道與Dev Docs的鏈接,或者是否有蘋果對此的正式迴應?iOS 10中的本地通知限制(UNNotificationRequest)

回答

2

確實是這樣,我只是檢查適用於iOS 10.2和UNNotificationRequest總數您可以添加限制仍然是64

+0

這是因爲iOS的10 – n13

+1

[文檔爲UNNotificationRequest]的(正確的https:// developer.apple.com/documentation/usernotifications/unnotificationrequest)沒有提及它。它也不在[通知指南](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/index.html#//apple_ref/doc/uid/TP40008194-CH3-SW1) 。你有官方消息來源提到它嗎?我不懷疑存在的限制,但希望看看它是否有文件記錄。 – shim