Yes, you can implement iOS Rich Notifications (e.g., with images) in your Flutter application. This requires adding a native iOS Notification Service Extension to your project in Xcode. If you encounter build errors after adding the extension, it's likely because the Pushwoosh SDK has not been correctly linked to the new extension target.
Follow these steps in Xcode to resolve the issue:
Add Pushwoosh Package Dependency: Navigate to your project settings, select the Package Dependencies tab, and add the Pushwoosh XCFramework using its repository URL:
https://github.com/Pushwoosh/Pushwoosh-XCFrameworkMake sure to include all the necessary modules from the SDK.
Link to Main App Target: Select your main application target, go to the General tab, and scroll down to the Frameworks, Libraries, and Embedded Content section. Add all the Pushwoosh SDK modules here.
Link to Notification Service Target: This is the crucial step. Select your NotificationService extension target, go to its General tab, and also add the same Pushwoosh SDK modules to its Frameworks, Libraries, and Embedded Content section.
After ensuring the Pushwoosh frameworks are linked to both your main app target and your Notification Service Extension target, clean the build folder and try building your app again. The build should now complete successfully.
Comments
0 comments
Please sign in to leave a comment.