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; }