I have push notifications setup. I have the icons badge increment for every push, then disappear when the user taps the icon. Is there a way I can know whether that badge is showing or not when the user taps the icon? I want to go to a specific view if the badge is showing.
Asked
Active
Viewed 63 times
0
-
4http://stackoverflow.com/questions/11996683/how-to-check-for-a-badge-number-on-app-launch-on-iphone – Jake Spencer Jul 26 '13 at 03:32
1 Answers
1
I think you'll need to keep track of it yourself in the app. Your delegate’s application:didFinishLaunchingWithOptions: will be called upon the notification and the user presses the action button and it receives the notification payload.
If you app is running in the foreground, the delegates application:didReceiveRemoteNotification: will be called. In this case you could have an integer value and increment it to keep track of the number of notifications you have. It also receives the notification payload

Toseef Khilji
- 17,192
- 12
- 80
- 121