How to change application badge with push when application is closed
问题 I'm trying to change the badge of the application I'm developing. When closed, unfortunately I was only notified a message without changing the badge. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [application registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeBadge]; NSDictionary* userInfo = [launchOptions valueForKey:@