ios - how to reschedule a repeatinterval notifications after letting the user to disable it temporarily? -
ios - how to reschedule a repeatinterval notifications after letting the user to disable it temporarily? -
what's best approach implement "do not disturb mode" our apps? letting user take disable notification between 2 periods.
should utilize cancel method?
[[uiapplication sharedapplication] cancelalllocalnotifications]; any thoughts on specific component used appreciated.
thank you
you can utilize bool instance turn yes when user sets "do not disturb" , no when disable setting. therefore, before posting notifications, can command if "do not disturb" on or off using bool instance. hence able alter behaviour of whole app. if want specify period, utilize timer trigger method in can set bool no , post notification should posted while "do not disturb" on.
ios objective-c xcode notifications uilocalnotification
Comments
Post a Comment