update localnotification event field

This commit is contained in:
huangminlinux 2017-12-13 13:32:34 +08:00
parent f50a8ea5c7
commit 4585a13d7b

View File

@ -143,10 +143,11 @@ NSDictionary *_launchOptions;
userInfo = [NSMutableDictionary dictionaryWithDictionary:notification.request.content.userInfo];
} else {
UNNotificationContent *content = notification.request.content;
userInfo = @{@"content": content.body,
userInfo = [NSMutableDictionary dictionaryWithDictionary:@{@"content": content.body,
@"badge": content.badge,
@"extras": content.userInfo
};
}];
userInfo[@"identifier"] = notification.request.identifier;
}
[JPushPlugin fireDocumentEvent:JPushDocumentEvent_ReceiveNotification jsString:[userInfo toJsonString]];
@ -165,6 +166,7 @@ NSDictionary *_launchOptions;
@"badge": content.badge,
@"extras": content.userInfo
}];
userInfo[@"identifier"] = notification.request.identifier;
}
userInfo[@"actionIdentifier"] = response.actionIdentifier;
[JPushPlugin fireDocumentEvent:JPushDocumentEvent_OpenNotification jsString:[userInfo toJsonString]];