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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

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

python - How to remove the Xframe Options header in django? -