evollu / react-native-fcm

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

Android crash on send notification from console #907

Closed vvusts closed 6 years ago

vvusts commented 6 years ago

"react": "16.0.0-alpha.12", "react-native": "0.52.1", "react-native-fcm": "^14.1.3", Android 6, 7 (device) Foreground, background, notRunning = true Quick example work fine. I think that I checked all similar issues here no solution.

When I send notification app crash with following error:

04-18 13:59:27.688 10704 10704 E AndroidRuntime: FATAL EXCEPTION: main
04-18 13:59:27.688 10704 10704 E AndroidRuntime: Process: com.myproject.app, PID: 10704
04-18 13:59:27.688 10704 10704 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate service com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerService: java.lang.ClassNotFoundException: Didn't find class "com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerService" on path: DexPathList[[zip file "/data/app/com.myproject.app-2/base.apk"],nativeLibraryDirectories=[/data/app/com.myproject.app-2/lib/arm, /system/fake-libs, /data/app/com.myproject.app-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]
nicholasrq commented 5 years ago

@vvusts have you been able to fix this? i'm facing the same issue now

pashoo2 commented 5 years ago

And me too