Customizing Pushwoosh React Native Plugin

Customize the Pushwoosh React Native plugin to avoid conflicts when working with other FCM services

Using Pushwoosh plugin with other FCM services

If your app uses other plugins that rely on firebase-messaging, it might result in conflicts, or in one of the plugins not working as expected. To resolve this conflict, you can add a custom FirebaseMessagingService class that will route push notifications between the plugins. Pushwoosh React Native plugin contains a template of this class which you can use as is to force all notifications go through Pushwoosh handlers, or modify it to handle notifications from other providers as well. To enable the template, uncomment the following lines in the plugin's AndroidManifest.xml:

    <service android:name="com.pushwoosh.reactnativeplugin.CustomFirebaseMessagingService" android:exported="false">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT"/>
        </intent-filter>
    </service>

Share your feedback with us

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.

Last updated

#1685:

Change request updated