-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
bug: notificationReceived called instead of notificationActionPerformed #793
Comments
Thank you for reporting that. I will take a look as soon as i have time. Feel free to create a PR if you would like to take a closer look. |
I encountered the same issue, and the solution was similar to this PR. The fix was to remove handleApplicationNotifications: false from the Capacitor config, as it was a leftover from the OneSignal plugin. Like others in the linked PR, I initially looked in the wrong place and was puzzled why the didReceive and willPresent methods in the FirebaseMessaging class weren’t being triggered. Probably makes sense to add this to the documentation. |
@stevecohenfr Please check if this also the issue in your case. |
Hello, I try to fix with this PR but not sure on how to deal with it.
And
And in my project to use the local version of this dependency
Then I tried to run on iOS :
And I've this error when I try to register listeners : Did I miss something ? Thanks |
I've implemented this plugin yesterday in a clients projects without any issue. Both listeners are called correctly. It should therefore be a configuration issue on your side. Please provide a minimal, reproducible example. |
This issue has been labeled as Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so we can debug the issue. If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for us to reproduce the issue. |
Plugin(s)
Version
6.3.1
Platform(s)
Current behavior
When my app is in the background and receives a notification, the notificationReceived event is correctly triggered with the expected data.
However, when I click on the notification, the notificationReceived event is triggered again instead of the notificationActionPerformed event. This behavior prevents me from handling notification actions as expected.
Expected behavior
notificationReceived should be triggered when the notification is received in the background.
notificationActionPerformed should be triggered when the notification is clicked.
Reproduction
n/a
Steps to reproduce
addListeners
is called is thengAfterViewInit
from my main componentOther information
No response
Capacitor doctor
Before submitting
The text was updated successfully, but these errors were encountered: