1

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. Commented Mar 24, 2016 at 20:49
  • This question may be helpful: stackoverflow.com/questions/16164339/… Commented Mar 24, 2016 at 20:51

2 Answers 2

1

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)

Sign up to request clarification or add additional context in comments.

Comments

1

It's a snap to change the badge count from anywhere in the app:

        UIApplication.sharedApplication().applicationIconBadgeNumber = 4

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.