iOS12 shouldAlwaysAlertWhileAppIsForeground闪退
在iOS12这样设置会闪退UNMutableNotificationContent *content = [[UNMutableNotificationContent alloc] init];[content setValue:@(YES) forKeyPath:@"shouldAlwaysAlertWhileAppIsForeground"];这样做的目的通常是为了在前台收到推送通知,...