當(dāng)點擊了推送后, 如果你希望進(jìn)行處理. 那么在iOS10中, 還需要設(shè)置UNUserNotificationCenter的delegate, 并遵守UNUserNotificationCenterDelegate協(xié)議. 以及實現(xiàn)下面實現(xiàn)3個方法, 用于處理點擊通知時的不同情況的處理 willPresentNotification:withCompletionHandler用于前臺運行 didReceiveNotificationResponse:withCompletionHandler用于...
www.dbjr.com.cn/article/934...htm 2016-9-25