I push the notification payload to the user without the icon or icon = 0, the notification cannot be deleted from the Notification Center. Here is my payload:
{ "aps" : {"alert" : "bala bala"} //or "aps" : {"alert" : "bala bala", "badge" : 0} }
Then open the application from NC, notification of stay in NC cannot be deleted. If I set the icon value to more than 0 in aps, the notification will be deleted after the application starts.
{ "aps" : {"alert" : "bala bala", "badge" : 1} }
I have already installed [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; after starting the application.
Why can't a notification be deleted without the icon or icon = 0?
Thanks.
source share