Setting up Badges for Flutter
This guide describes the process of implementing Badges for Pushwoosh Flutter plugin
Last updated
This guide describes the process of implementing Badges for Pushwoosh Flutter plugin
Last updated
1. Open your iOS project located in your_project/ios/Runner.xcworkspace and create NotificationServiceExtension:
2. Open Podfile (located in your_project/ios/Podfile) and add PushwooshXCFramework dependency fo NotificationServiceExtensionTarget:
You can put these lines after target ‘Runner’ do
like in the example below:
3. Install pods via Terminal:
4. Close and reopen your Xcode project.
Make sure that you open the project via .xcworkspace and not via .xcproject.
5. Make sure that your Deployment target matches the one in the Runner target; otherwise, you might face an issue when building your app (e.g., if you specify iOS 10.0 in Runner and iOS 15.5 in NotificationService targets).
6. Add App Groups capability to both Runner and NotificationService targets and add a new group with the same name for both targets:
7. Add PW_APP_GROUPS_NAME info.plist flag to both Runner and NotificationService targets with the group name as its string value:
8. Go to NotificationService.m and replace its code with the following:
That's it!
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.