ios - How to get the local notifications which are listed in Notifications pull down? -


i have ios 8.0 application produces local notifications shown in global notifications pull down (the notifications view).

enter image description here

perfect! to:

  1. get listed notifications app.
  2. delete specific notification based on userinfo have provided when producing local notification.

i have been looking around https://developer.apple.com/library/ios/documentation/networkinginternet/conceptual/remotenotificationspg/chapters/whatareremotenotif.html#//apple_ref/doc/uid/tp40008194-ch102-sw1

and exploring properties , methods uiapplication:

uiapplication.sharedapplication().scheduledlocalnotifications.count 

~ 1 empty makes sense because notifications in list have been fired , no longer scheduled... so:

which api(s) can use ?

update 1

most recent explanation scheduledlocalnotifications beining empty ios 8 [uiapplication sharedapplication].scheduledlocalnotifications empty

which lead me rather awkward solution storing notification in nsuserdefault key , later key , canceling usual way:

uiapplication.sharedapplication(<notification userdefaults key>).  

but liked hold of more clean ios solution.

not @ all. there no api that. sorry

-- can see notifications pending (not yet delivered user) only


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -