ios - Swift UILocalNotification: Is it possible to fire an event when Notification is displayed? -


so know didreceivelocalnotification event fired when user selects action on local notification.

but, event fired prior when notification displayed banner or alert when app not active? , can accessed background code?

i looking answer in swift if can help.

no, local notifications not , cannot awake app when firing , application not active. user must tap notification, or perform developer defined action on before app hears anything.

if need app wake up, need use remote notification content available flag set.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -