mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-31 14:32:51 +08:00
解决点击通知导致app崩溃问题
解决点击通知导致app崩溃问题 报[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
This commit is contained in:
parent
6c80b47bad
commit
8bad630e5a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user