Skip to content

BACKGROUND ISSUE: launching app, that is running in background didnt trigger press event listener #71

@rimzici

Description

@rimzici

node modules versions:
"react": "^15.2.1",
"react-native": "^0.31.0",
"react-native-system-notification": "^0.2.0",
"react-native-fcm": "^1.0.16",

tried with "react-native": "^0.29.0", also.
have made all config changes told in react-native-system-notification docs.added android:launchMode="singleTask" in manifest file. and issue of app loading every time , even when launching from background got solved, now it resumes. So after that the event listener is not working.
Notification.addListener('press', function(e) {
console.log(e);
});
the listener works when app is running in the foreground. But in the background app launches on clicking notification but event listener not triggered.
Any Suggestions ?
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