evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

Method does not override or implement a method from a supertype #470

Open jaimeagudo opened 6 years ago

jaimeagudo commented 6 years ago

What version of RN and react-native-fcm are you running?

  "react-native": "0.47.0-rc.4",
 "react-native-fcm": "7.2.0",

What device are you using? (e.g iOS9 emulator, Android 6 device)?

Android 6 emulator, not compiling

Advanced: Have you tried adding break point in native handlers to see if message gets delivered? No can share a project with issue? No

:react-native-fcm:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/jaime/Github/ROC/RocNativeProject/node_modules/react-native-fcm/android/src/main/java/com/evollu/react/fcm/FIRMessagingPackage.java:26: error: method does not override or implement a method from a supertype
    @Override
    ^
1 error
:react-native-fcm:compileReleaseJavaWithJavac FAILED
povloid commented 6 years ago

some problem too

pedrogarciyalopez commented 6 years ago

someone solve the problem?

PeterEmanuel commented 6 years ago

+1 after upgrading (via git) to 0.47 with the few packages that I use, cm-rn-document-picker, rn-audio-toolkit, and some others. After removed the document-picker (which I was not yet importing) I got it with the audio-toolkit. Of course I cannot unlink it, because I do use this one. Would this also happen with other linked packages?

asgvard commented 6 years ago

Corresponds to a breaking change: https://github.com/facebook/react-native/commit/ce6fb337a146e6f261f2afb564aa19363774a7a8

method createJSModules is no longer needed I guess? Same here: https://github.com/react-native-community/react-native-blur/pull/226

asgvard commented 6 years ago

Seems to be fixed here: https://github.com/evollu/react-native-fcm/commit/4c49ca7e4d3d9b2b2c323f8dbe631789e6bd457a

Try v8.0.0 of FCM

Awadhesh31 commented 6 years ago

run react-native link and react-native upgrade inside you project then run react-native run-android / ios image