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];
|
userInfo = [self jpushFormatAPNSDic:notification.request.content.userInfo];
|
||||||
} else {
|
} else {
|
||||||
UNNotificationContent *content = notification.request.content;
|
UNNotificationContent *content = notification.request.content;
|
||||||
userInfo = [NSMutableDictionary dictionaryWithDictionary:@{@"content": content.body,
|
userInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:content.body,@"content",
|
||||||
@"badge": content.badge,
|
content.badge,@"badge",
|
||||||
@"extras": content.userInfo
|
content.userInfo,@"extras",
|
||||||
}];
|
nil];
|
||||||
userInfo[@"identifier"] = notification.request.identifier;
|
userInfo[@"identifier"] = notification.request.identifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user