Post

Replies

Boosts

Views

Activity

Reply to Scheduled local notifications mysteriously disappearing
I had a similar issue - what I was doing was calling removeAllPendingNotificationRequests immediately before I scheduled the new ones, just to clean everything up before reseting. The problem with that is that this method does the actual work on a background thread, so if you immediately add new notifications it's possible that they are deleted by the deferred removal.
Topic: Programming Languages SubTopic: Swift Tags:
May ’24