From 8bad630e5aa07cc565d25e8441e0e90739bd151b Mon Sep 17 00:00:00 2001 From: Mak <867409182@qq.com> Date: Thu, 12 Apr 2018 09:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=82=B9=E5=87=BB=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=AF=BC=E8=87=B4app=E5=B4=A9=E6=BA=83=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决点击通知导致app崩溃问题 报[__NSPlaceholderDictionary initWithObjects:forKeys:count:] --- src/ios/Plugins/AppDelegate+JPush.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ios/Plugins/AppDelegate+JPush.m b/src/ios/Plugins/AppDelegate+JPush.m index e4b759e..a0516a8 100644 --- a/src/ios/Plugins/AppDelegate+JPush.m +++ b/src/ios/Plugins/AppDelegate+JPush.m @@ -158,10 +158,10 @@ NSDictionary *_launchOptions; userInfo = [self jpushFormatAPNSDic:notification.request.content.userInfo]; } else { UNNotificationContent *content = notification.request.content; - userInfo = [NSMutableDictionary dictionaryWithDictionary:@{@"content": content.body, - @"badge": content.badge, - @"extras": content.userInfo - }]; + userInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:content.body,@"content", + content.badge,@"badge", + content.userInfo,@"extras", + nil]; userInfo[@"identifier"] = notification.request.identifier; }