Skip to content

[RN-0.31.0] Issue in FCM ListenerΒ #69

@rimzici

Description

@rimzici

Hi team, pasting portion of my output after running my app , after configuring system notification.
following are my module versions :
"react": "15.2.1",
"react-native": "0.31.0",
"react-native-fcm": "^1.0.16",
"react-native-system-notification": "^0.2.1"

ERROR :
-DATE
:react-native-system-notification:prepareReleaseDependencies
:react-native-system-notification:compileReleaseAidl UP-TO-DATE
:react-native-system-notification:compileReleaseRenderscript UP-TO-DATE
:react-native-system-notification:generateReleaseBuildConfig UP-TO-DATE
:react-native-system-notification:generateReleaseAssets UP-TO-DATE
:react-native-system-notification:mergeReleaseAssets UP-TO-DATE
:react-native-system-notification:generateReleaseResValues UP-TO-DATE
:react-native-system-notification:generateReleaseResources UP-TO-DATE
:react-native-system-notification:mergeReleaseResources UP-TO-DATE
:react-native-system-notification:processReleaseManifest UP-TO-DATE
:react-native-system-notification:processReleaseResources UP-TO-DATE
:react-native-system-notification:generateReleaseSources UP-TO-DATE
:react-native-system-notification:processReleaseJavaRes UP-TO-DATE
:react-native-system-notification:compileReleaseJava
/Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/FCMNotificationListenerService.java:9: error: package com.google.firebase.messaging does not exist
import com.google.firebase.messaging.FirebaseMessagingService;
^
/Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/FCMNotificationListenerService.java:10: error: package com.google.firebase.messaging does not exist
import com.google.firebase.messaging.RemoteMessage;
^
/Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/FCMNotificationListenerService.java:13: error: cannot find symbol
public class FCMNotificationListenerService extends FirebaseMessagingService {
^
symbol: class FirebaseMessagingService
/Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/FCMNotificationListenerService.java:22: error: cannot find symbol
public void onMessageReceived(RemoteMessage remoteMessage) {
^
symbol: class RemoteMessage
location: class FCMNotificationListenerService
/Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/FCMNotificationListenerService.java:34: error: cannot find symbol
private void sendNotification(RemoteMessage remoteMessage) {
^
symbol: class RemoteMessage
location: class FCMNotificationListenerService
/Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/FCMNotificationListenerService.java:21: error: method does not override or implement a method from a supertype
@OverRide
^
/Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/FCMNotificationListenerService.java:39: error: cannot find symbol
sendOrderedBroadcast(i, null);
^
symbol: method sendOrderedBroadcast(Intent,)
location: class FCMNotificationListenerService
/Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/FCMNotificationListenerService.java:64: error: incompatible types: FCMNotificationListenerService cannot be converted to Context
NotificationManager nm = new NotificationManager(this);
^
Note: /Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/NotificationEventReceiver.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/rimneshfernandez/work/projects/curation/node_modules/react-native-system-notification/android/src/main/java/io/neson/react/notification/WritableNativeMap.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
8 errors
:react-native-system-notification:compileReleaseJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-system-notification:compileReleaseJava'.

    Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 3.983 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

Need Assistance.
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions