Local Notifications - nimblehq/github-notifications-mac GitHub Wiki
Schedule Notifications
Currently, the user will receive notifications when was assigned, mentioned, review requested, and when the user's pull request was reviewed.
All notifications are received from polling API which calls API every one minute and filters for only notifications from notified repositories. All incoming notifications will be scheduled to show the notification banner immediately.
Repeat Notifications
If the user enables the Repeat review requested notifications option on the General Screen. The review requested notifications will be repeated every 10 minutes by setting the repeats property of UNTimeIntervalNotificationTrigger to be true.
UNTimeIntervalNotificationTrigger(timeInterval: repeatDuration, repeats: true)
Once the user opens any particular notification, its pending local notifications will be removed. Using notification's identifier to find the particular notification.
notificationCenter.removePendingNotificationRequests(withIdentifiers: [response.notification.request.identifier])
All pending notifications will be removed when the user turns off the Repeat review requested notifications option.
notificationCenter.removeAllPendingNotificationRequests()