zileyuan / umeng_analytics_push

Umeng Analytics&Push Flutter Plugins
MIT License
30 stars 21 forks source link

文档里面的一处错误 #2

Closed gaoyong06 closed 4 years ago

gaoyong06 commented 4 years ago

正确的

override func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
    let userInfo = response.notification.request.content.userInfo
    UmengAnalyticsPushFlutterIos.handleCustomMessagePush(userInfo)
    completionHandler()
}

错误的:

override func userNotificationCenter(center: UNUserNotificationCenter, didReceiveNotificationResponse response: UNNotificationResponse, withCompletionHandler completionHandler: () -> Void){
    let userInfo = response.notification.request.content.userInfo
    UmengAnalyticsPushFlutterIos.handleCustomMessagePush(userInfo)
    completionHandler()
}
zileyuan commented 4 years ago

感谢!!!