jjzjj

silentNotification

全部标签

ios - 如何测试静默通知在 iOS 中是否正常工作?

我有一个使用无声通知订阅的程序:letpredicate=NSPredicate(format:"recordID==%@",CKRecordID(recordName:"ListName"))letsilentNotification=CKNotificationInfo()silentNotification.shouldSendContentAvailable=truesilentNotification.desiredKeys=["Update"]letsubscription=CKSubscription(recordType:"Lists",predicate:predic