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

Closed
LuckyMadu opened this issue May 28, 2024 · 9 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.

Copy link

github-actions bot commented Aug 7, 2024

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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
@Eclipses-Saros
Copy link

not stale

check #621 (comment)

@mikehardy mikehardy reopened this Sep 13, 2024
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.

@mikehardy
Copy link
Collaborator

This may be fixed in v9.1.2 here - there was definitely a problem with new architecture if it was in use, and it would not work until v9.1.2 just now

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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 30, 2024
@mikehardy
Copy link
Collaborator

needs testing

@mikehardy mikehardy reopened this Dec 1, 2024
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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants