[JPUSHService findNotification:identifier];
JPushNotificationIdentifier * identifier = [[JPushNotificationIdentifier alloc] init];
if (@available(iOS 10.0, *)) {
identifier.delivered = YES;
} else {
}
identifier.identifiers = nil;
identifier.findCompletionHandler = ^(NSArray *results) {
self.customerApnsNum = results.count;
};
[JPUSHService findNotification:identifier];
这个方法在iOS10以下无效,我通知栏有几条推送消息,但是数组返回的为空