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

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

c# - Specify IP End Point in FiddlerCore -

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