- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler
不调用 不触发 断点无用
为什么呢?
你服务端推的内容由
{
"aps": {
"alert": {
"body": "d3.333333333"
},
"badge": "1",
"sound": "default"
},
"payload": null
}
变成
{
"aps": {
"alert": "d3.333333333",
"badge": "1",
"sound": "default"
},
"payload": null
}
很神奇吧。wtf。
网友评论