scheduled local notification is not being stored in the scheduledLocalNotification array

后端 未结 3 1819
走了就别回头了
走了就别回头了 2021-01-22 04:15

I am currently scheduling local notifications to appear once per day at 6PM if a user has not already opened the app that day. If the user has already loaded the application, th

3条回答
  •  情书的邮戳
    2021-01-22 05:03

    if the schedule has invalid fire date, it will not get scheduled and result empty array returned, because there never has a valid one schedule, try to print out your localNotification like below, you may find out the problem.

    NSLog(@"Notification--->: %@", localNotification);
    

提交回复
热议问题