Alarm-ios-swift
Alarm-ios-swift copied to clipboard
Cancel only Our Alarm otherwise it will affect other module of the whole app which also use local notifications
Hi, I implement this alarm as part of another app. But i come to know that you remove all alarm so it will effect alarm set by other module of my app.
How to just remove only the alarms set by this alarm module?
thanks
Hi, I think what you need is just some id to identify the parent "module". you can use a 2-d array, each 1-d array in it stores the alarm for each module, or a hash table for some 1-d arrays.
Can we use the same identifier for all alarm set by this Alarm Swift or each identifir needs to be unique? for exmple, identifier= "myswiftlarm"
this way, we can remove all alarm with this name.