I have integrated push notification into iOS app. My problem is once I install the app, and reinstall it in another time, even before I login through the app my app icon shows the badge count. I dont want to show it if the user has logged out. So when user click on the logout I set the badge count as 0. But when I install it again, even before I log into it my app shows the notification badge count as a different number.
How can I avoide this? Please help me. Thanks