Setting up Badges
This guide describes the process of implementing Badges for Pushwoosh iOS SDK
Starting with version 6.4.0 of Pushwoosh iOS SDK, the process of managing and setting badges through push notifications has changed.
If you were previously using the badges number to indicate the number of received push notifications in your application, you have to migrate to newer version of iOS SDK (6.4.0 or later). The older versions will be supported until the end of the second quarter of 2022.
To set up badges, follow the steps below:
Adding Notification Service Extension
PWNotificationExtensionManager.shared().handle(request, contentHandler: contentHandler)
[[PWNotificationExtensionManager sharedManager] handleNotificationRequest:request contentHandler:contentHandler];
App Groups Capability
PWNotificationExtensionManager.shared().handle(request, withAppGroups: "group.com.example.demoapp_example")
[[PWNotificationExtensionManager sharedManager] handleNotificationRequest:request withAppGroups:@"group.com.example.demoapp_example"];
If you want to send push notification with badges from Pushwoosh Control Panel, just add a desired badge value to the badges text field as shown in the picture below:
Your feedback helps us create a better experience, so we would love to hear from you if you have any issues during the SDK integration process. If you face any difficulties, please do not hesitate to share your thoughts with us via this form.