ios - Can a Local Notification triggering be detected without tapping on the notification? -


my app starts timer when local notification based on date triggered using unusernotificationcenterdelegate::didreceive delegate.

but if app opened when notification triggered, want timer start automatically @ point, without tapping on notification.

is possible ?

e.g:

i want set notification 3 pm, @ point start 30 min timer (this should start @ 3 pm), expire @ 3:30 pm.
if user taps on notification 10 mins later, @ 3:10 pm...the timer expire @ 3:40. why want start timer when notification triggered, not when user taps on it.

method usernotificationcenter(_:willpresent:withcompletionhandler:) called when notification delivered foreground app.

source : link


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -