I'm currently working on setting up notifications using @react-native-firebase/messaging in a React Native app. I'm able to retrieve the FCM token, but the app crashes when a notification is received.
Here's the error I found in Crashlytics:
Unable to instantiate service io.invertase.firebase.messaging.RNFirebaseMessagingService: java.lang.ClassNotFoundException: Didn't find class "io.invertase.firebase.messaging.RNFirebaseMessagingService" on path: DexPathList
Below are the versions of libraries used in the app:
"@react-native-firebase/analytics": "^7.6.7",
"@react-native-firebase/app": "^8.4.3",
"@react-native-firebase/crashlytics": "^8.4.9",
"@react-native-firebase/messaging": "^7.8.11",
"react": "16.13.1",
"react-native": "^0.63.3",
Content of android/build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
(buildscript and dependencies)
(allprojects with repositories)
Content of app/build.gradle:
(application config section)
(dependencies section)
(Notification code)
I am looking for assistance in resolving this issue. Can anyone help me with this?