ios - local notification not updating badge number when application is closed
问题 I have noticed that when a local notification is being received in an ios device, the notification appears in the Notification Center but the app badge number is not updated when the app is closed. I need to touch the notification in the Notification Center for the local push message to be transferred to the app. Is this the normal behavior? Can this be solved by using remote push notifications? 回答1: You can utilize the applicationIconBadgeNumber parameter in a UILocalNotification object.