Alarm-ios-swift icon indicating copy to clipboard operation
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

Open garudaonekh opened this issue 6 years ago • 2 comments

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

garudaonekh avatar Feb 19 '19 09:02 garudaonekh

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.

natsu1211 avatar Feb 21 '19 04:02 natsu1211

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.

mobileonekh avatar Feb 25 '19 03:02 mobileonekh