UNUserNotificationCenterDelegate与didReceiveRemoteNotification之间的差异

问题描述 投票:0回答:1

[当我们同时实现didReceiveRemoteNotification和UNUserNotificationCenterDelegate方法时,iOS的行为-

  optional public func userNotificationCenter(_ center: 
  UNUserNotificationCenter, didReceive response: UNNotificationResponse, 
  withCompletionHandler completionHandler: @escaping () -> Swift.Void)

根据文档,receiveRemoteNotification已过时,但如果应用程序已实现两种委托方法,则哪个对象可以在XCode 8(Swift 3)上同时调用iOS 10应用程序和iOS 9应用程序?

ios swift ios10
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.