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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support userInteraction for didReceiveRemoteNotification #434

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bang9
Copy link

@bang9 bang9 commented Mar 15, 2024

No matter which type of push notification (local or remote) is clicked, I expected the recommended API, didReceiveNotificationResponse, to work.
However, it's not functioning as expected some environment.(maybe firebase integration problem?)

When didReceiveNotificationResponse doesn't work, didReceiveRemoteNotification works even when the notification is clicked. 馃
Following the guide, I tried to implement it, but userInteraction isn't always present.

Although it's a very hacky, the point of clicking in the background and opening the status bar to click on the push banner is considered an inactive state. So, it works using this approach.

If there's a better way, please let me know. A video is attached for reference.

980ebce1-ebd6-4298-8450-be9c3c79e9da.mp4

@bang9
Copy link
Author

bang9 commented Mar 16, 2024

For those searching for the answer:
The issue with didReceiveNotificationResponse not working was a bug in Notifee
invertase/notifee#925

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

Successfully merging this pull request may close these issues.

None yet

1 participant