In the iOS app I am developing, when a push notification is sent, a popup appears, but if the user doesn't tap on it the notification is lost and it is not even in the missed notifications center.
How can I solve this?
In the iOS app I am developing, when a push notification is sent, a popup appears, but if the user doesn't tap on it the notification is lost and it is not even in the missed notifications center.
How can I solve this?
just add these line in your code. set the setApplicationIconBadgeNumber=0
int badgeCount = [UIApplication sharedApplication].applicationIconBadgeNumber;
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
[[UIApplication sharedApplication] cancelAllLocalNotifications];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:badgeCount];
refer this for ore info Remove single remote notification from Notification Center