ios - Detect push notifications tap -


i know can use code handling notifications :

- (void)application:(uiapplication *)application didreceiveremotenotification:(nsdictionary *)userinfo{     if ( application.applicationstate == uiapplicationstateinactive || application.applicationstate == uiapplicationstatebackground  )    {//opened push notification when app on background     } } 

but isn't reliable loops number of current notifications shows view controller hundres of time

so question :

is there other "good" way can use handle tapped notification ?


Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World