If you hit this Android build error after updating the Pushwoosh React Native plugin, it is a known method-visibility clash that has been fixed in later releases.
The error message typically looks like this:
'onMessageReceived(PushMessage)' in 'com.pushwoosh.reactnativeplugin.PushwooshNotificationServiceExtension' clashes with 'onMessageReceived(PushMessage)' in 'com.pushwoosh.notification.NotificationServiceExtension'; attempting to assign weaker access privileges ('protected'); was 'public'
The cause is a method visibility mismatch between the plugin's PushwooshNotificationServiceExtension and the NotificationServiceExtension class in the native Pushwoosh Android SDK bundled with it. The same mismatch could also affect the startActivityForPushMessage and onMessageOpened methods.
Resolution
Update the plugin to the latest release. The package is published on npm as pushwoosh-react-native-plugin — there is no @pushwoosh/react-native-plugin scoped package. As of July 2026 the latest version is 6.1.58.
- In your
package.json, set"pushwoosh-react-native-plugin": "^6.1.58". - Delete your
node_modulesfolder and thepackage-lock.jsonoryarn.lockfile. - Run
npm installoryarn install. - Rebuild your Android application.
Note on version numbers: releases in the 6.7.x / 6.9.x / 6.10.x range belong to the native Pushwoosh Android SDK, not to the React Native plugin. The plugin's own versions are in the 6.1.x range, so don't try to pin the plugin to a native-SDK version number.
Comments
0 comments
Please sign in to leave a comment.