求助 UILocalNotification 本地通知在Applications/ 下无效

如题
把app放到 Applications/ 下无效,不会弹出消息~~ 正常安装到用户目录没问题~ 求解决方案

代码:

  • (void)applicationDidEnterBackground:(UIApplication *)application {

      UILocalNotification *notification = [UILocalNotification alloc] init];
      if (notification != nil) {
              NSDate *now = [NSDate new];
              notification.fireDate = [now dateByAddingTimeInterval:1]
              notification.repeatInterval = 0
              notification.timeZone = [NSTimeZone defaultTimeZone];
              notification.applicationIconBadgeNumber = 1
              notification.soundName = UILocalNotificationDefaultSoundName
              notification.alertBody = @"通知内容"
              notification.alertAction = @"打开"
    
    
              NSLog(@"===========applicationDidEnterBackground=======");
              [UIApplication sharedApplication] scheduleLocalNotification:notification];
      }
    

}