Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] onForegroundEvent or onBackgroundEvent not triggering when clicking push notifications #1044

Open
LuckyMadu opened this issue May 28, 2024 · 2 comments

Comments

@LuckyMadu
Copy link

LuckyMadu commented May 28, 2024

I must navigate to a specific screen based on the data object information. iOS is working fine for this issue.

 "react-native": "0.72.0"
 "@notifee/react-native": "^7.8.0"
notifee.onForegroundEvent(({ type, detail }) => {
    if (type === EventType.PRESS) {
        // access data
    }
  });

Below is the Postman payload to send the push notification.

{
    "message": {
        "token": "xxx",
        "notification": {
            "body": "Welcome to management",
            "title": "Welcome"
        },
        "data": {
            "id": "12345",
            "type": "Document"
        }
    }
}
Copy link

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

@Gautham495
Copy link

Having the same issue suddenly. It worked before for me. Please fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants