{"action":"created","issue":{"url":"https://api.github.com/repos/Neson/react-native-system-notification/issues/69","repository_url":"https://api.github.com/repos/Neson/react-native-system-notification","labels_url":"https://api.github.com/repos/Neson/react-native-system-notification/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/Neson/react-native-system-notification/issues/69/comments","events_url":"https://api.github.com/repos/Neson/react-native-system-notification/issues/69/events","html_url":"https://github.com/Neson/react-native-system-notification/issues/69","id":172265193,"number":69,"title":"[RN-0.31.0] Issue in FCM Listener","user":{"login":"rimzici","id":16771765,"avatar_url":"https://avatars.githubusercontent.com/u/16771765?v=3","gravatar_id":"","url":"https://api.github.com/users/rimzici","html_url":"https://github.com/rimzici","followers_url":"https://api.github.com/users/rimzici/followers","following_url":"https://api.github.com/users/rimzici/following{/other_user}","gists_url":"https://api.github.com/users/rimzici/gists{/gist_id}","starred_url":"https://api.github.com/users/rimzici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rimzici/subscriptions","organizations_url":"https://api.github.com/users/rimzici/orgs","repos_url":"https://api.github.com/users/rimzici/repos","events_url":"https://api.github.com/users/rimzici/events{/privacy}","received_events_url":"https://api.github.com/users/rimzici/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-20T10:40:54Z","updated_at":"2016-08-23T15:03:27Z","closed_at":null,"body":"Hi team, pasting portion of my output after running my app , after configuring system notification.\r\nfollowing are my module versions : \r\n\"react\": \"15.2.1\",\r\n    \"react-native\": \"0.31.0\",\r\n    \"react-native-fcm\": \"^1.0.16\",\r\n    \"react-native-system-notification\": \"^0.2.1\"\r\n\r\nERROR : \r\n-DATE\r\n:react-native-system-notification:prepareReleaseDependencies\r\n:react-native-system-notification:compileReleaseAidl UP-TO-DATE\r\n:react-native-system-notification:compileReleaseRenderscript UP-TO-DATE\r\n:react-native-system-notification:generateReleaseBuildConfig UP-TO-DATE\r\n:react-native-system-notification:generateReleaseAssets UP-TO-DATE\r\n:react-native-system-notification:mergeReleaseAssets UP-TO-DATE\r\n:react-native-system-notification:generateReleaseResValues UP-TO-DATE\r\n:react-native-system-notification:generateReleaseResources UP-TO-DATE\r\n:react-native-system-notification:mergeReleaseResources UP-TO-DATE\r\n:react-native-system-notification:processReleaseManifest UP-TO-DATE\r\n:react-native-system-notification:processReleaseResources UP-TO-DATE\r\n:react-native-system-notification:generateReleaseSources UP-TO-DATE\r\n:react-native-system-notification:processReleaseJavaRes UP-TO-DATE\r\n:react-native-system-notification:compileReleaseJava\r\n/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\r\nimport com.google.firebase.messaging.FirebaseMessagingService;\r\n                                    ^\r\n/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\r\nimport com.google.firebase.messaging.RemoteMessage;\r\n                                    ^\r\n/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\r\npublic class FCMNotificationListenerService extends FirebaseMessagingService {\r\n                                                    ^\r\n  symbol: class FirebaseMessagingService\r\n/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\r\n    public void onMessageReceived(RemoteMessage remoteMessage) {\r\n                                  ^\r\n  symbol:   class RemoteMessage\r\n  location: class FCMNotificationListenerService\r\n/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\r\n    private void sendNotification(RemoteMessage remoteMessage) {\r\n                                  ^\r\n  symbol:   class RemoteMessage\r\n  location: class FCMNotificationListenerService\r\n/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\r\n    @Override\r\n    ^\r\n/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\r\n        sendOrderedBroadcast(i, null);\r\n        ^\r\n  symbol:   method sendOrderedBroadcast(Intent,<null>)\r\n  location: class FCMNotificationListenerService\r\n/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\r\n        NotificationManager nm = new NotificationManager(this);\r\n                                                         ^\r\nNote: /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.\r\nNote: Recompile with -Xlint:deprecation for details.\r\nNote: /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.\r\nNote: Recompile with -Xlint:unchecked for details.\r\nNote: Some messages have been simplified; recompile with -Xdiags:verbose to get full output\r\n8 errors\r\n:react-native-system-notification:compileReleaseJava FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':react-native-system-notification:compileReleaseJava'.\r\n> Compilation failed; see the compiler error output for details.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 1 mins 3.983 secs\r\nCould not install the app on the device, read the error above for details.\r\nMake sure you have an Android emulator running or a device connected and have\r\nset up your Android development environment:\r\nhttps://facebook.github.io/react-native/docs/android-setup.html\r\n\r\n\r\nNeed Assistance.\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/Neson/react-native-system-notification/issues/comments/241761453","html_url":"https://github.com/Neson/react-native-system-notification/issues/69#issuecomment-241761453","issue_url":"https://api.github.com/repos/Neson/react-native-system-notification/issues/69","id":241761453,"user":{"login":"rimzici","id":16771765,"avatar_url":"https://avatars.githubusercontent.com/u/16771765?v=3","gravatar_id":"","url":"https://api.github.com/users/rimzici","html_url":"https://github.com/rimzici","followers_url":"https://api.github.com/users/rimzici/followers","following_url":"https://api.github.com/users/rimzici/following{/other_user}","gists_url":"https://api.github.com/users/rimzici/gists{/gist_id}","starred_url":"https://api.github.com/users/rimzici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rimzici/subscriptions","organizations_url":"https://api.github.com/users/rimzici/orgs","repos_url":"https://api.github.com/users/rimzici/repos","events_url":"https://api.github.com/users/rimzici/events{/privacy}","received_events_url":"https://api.github.com/users/rimzici/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T15:03:27Z","updated_at":"2016-08-23T15:03:27Z","body":"solved by adding:\r\n\r\ncompile 'com.google.firebase:firebase-core:+'\r\ncompile 'com.google.firebase:firebase-messaging:+'\r\n into \"project/node_modules/react-native-system-notification/android/build.gradle\"\r\nafter adding as i was getting another Multi-dex related issue, I had to enable multi-dex and app runs without error.\r\nBut Background Issue Persists.\r\nthought in the latest release background issue would have been fixed, But its still there.\r\nLaunching app from background through clicking custom notification, is not triggering the \r\nNotification.addListener('press', function(e) {\r\nconsole.log(e);\r\n}); \r\n listener.\r\n\r\non using \r\nandroid:launchMode=\"singleTask\" \r\nin the manifest file , the app resumes instead of reloading. but the listener not working Someone has solved this issue ?"}}
{"actor":{"display_login":"rimzici"}}