Find list of Local Notification the app has already set

后端 未结 8 1864
盖世英雄少女心
盖世英雄少女心 2020-12-01 05:37

My app allows users to set a number of reminders in the future. When the app lauches I want to know what reminders (notifications) have already been set.

Can I read

8条回答
  •  生来不讨喜
    2020-12-01 06:05

    In Swift, to see all your currently scheduled local notifications printed in the console:

    print(UIApplication.sharedApplication().scheduledLocalNotifications)
    

提交回复
热议问题