Skip to content

fix(iOS): Allow notification chain forwarding for non-SFMC push notification - #5

Open
AviadKa wants to merge 1 commit into
salesforce-marketingcloud:mainfrom
metaflowltd:main
Open

fix(iOS): Allow notification chain forwarding for non-SFMC push notification#5
AviadKa wants to merge 1 commit into
salesforce-marketingcloud:mainfrom
metaflowltd:main

Conversation

@AviadKa

@AviadKa AviadKa commented Jun 25, 2025

Copy link
Copy Markdown

Fix iOS notification chain forwarding for non-SFMC push notifications
Issue
The current implementation of didReceiveRemoteNotification:fetchCompletionHandler: intercepts all push notifications and completes them immediately with UIBackgroundFetchResultNoData. This blocks the notification chain and prevents other plugins from receiving and processing push notifications unrelated to SFMC.

Fix
Modified the implementation to handle notifications containing SFMC-specific identifiers (_sid, _m) and return NO for non-SFMC notifications, allowing them to propagate through the notification chain to other handlers.

Impact
SFMC push notifications continue to be handled correctly by the plugin
Other plugins can now properly receive and process their remote push notifications
Fixes compatibility issues with other notification-dependent plugins
Aligns with iOS best practices for plugin notification handling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant