When using both Pushwoosh and Firebase Cloud Messaging (FCM) in a React Native application, conflicts can arise on iOS due to how push notification handling is managed (specifically method swizzling).
To ensure both SDKs can coexist and handle their respective notifications correctly on iOS, you need to configure the Pushwoosh SDK appropriately.
Add the following key-value pair to your iOS project's Info.plist
file:
<key>Pushwoosh_PLUGIN_NOTIFICATION_HANDLER</key>
<true/>
Setting this flag allows the Pushwoosh SDK to correctly chain the notification handling calls, enabling both Pushwoosh and Firebase listeners to receive events.
Note: This setting is different from the pw_notification_handling
configuration option, which controls how Pushwoosh itself processes notifications (e.g., DEFAULT
vs CUSTOM
). For basic coexistence with Firebase, use the Info.plist
flag described above.
Comments
0 comments
Please sign in to leave a comment.