You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
My project was previously using the react-native-push-notification version 3.5.2. Today I upgraded the same to the latest version - 8.1.0. I also upgraded the @react-native-community/push-notification-ios to 1.10.1.
When I try to build the android app, I get the error : > Task :react-native-push-notification:compileDebugJavaWithJavac FAILED
The two main errors after this error are:
/Users/apple/Desktop/Push-Notifications/betterhalf-mobile-rn/node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotification.java:140: error: cannot find symbol
FirebaseMessaging.getInstance().getToken()
^
symbol: method getToken()
location: class FirebaseMessaging
/Users/apple/Desktop/Push-Notifications/betterhalf-mobile-rn/node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotification.java:283: error: cannot find symbol
FirebaseMessaging.getInstance().deleteToken();
^
symbol: method deleteToken()
location: class FirebaseMessaging