I've got push notifications going to the application I'm working on, but I can't seem to manage them in the application. If I can't manage the notifications in the application, how else can I reduce the incrementing value of the badge icon for the application app-icon?
2
-
I think we'll need more details to help. You can send data with the push and use that data to set the badge icon.Lou Franco– Lou Franco2016-03-24 20:49:29 +00:00Commented Mar 24, 2016 at 20:49
-
This question may be helpful: stackoverflow.com/questions/16164339/…Chance Hudson– Chance Hudson2016-03-24 20:51:11 +00:00Commented Mar 24, 2016 at 20:51
Add a comment
|
2 Answers
You can change badge count in push data, also if you need manage received push notification data, use this function:
func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void)