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

[Bug]: NotificationClickResult actionId undefined #1025

Open
2 of 3 tasks
ctg3 opened this issue Oct 5, 2024 · 0 comments
Open
2 of 3 tasks

[Bug]: NotificationClickResult actionId undefined #1025

ctg3 opened this issue Oct 5, 2024 · 0 comments

Comments

@ctg3
Copy link

ctg3 commented Oct 5, 2024

What happened?

When handling a OneSignal.Notifications.addEventListener('click', ) in which the event has associated action buttons, the event.result.actionId is undefined but clickEvent.result.actionID is defined.

This does not match the NotificationClickResult interface which specifies that value to be in actionId.

Steps to reproduce?

1. Send a push notification with an action button
2. Using the 'click' event listener, attempt to retrieve the event result actionId and it will be undefined
3. Using the 'click' event listener, attempt to retrieve the event result actionID and it will be properly set

What did you expect to happen?

I expect that the actionId value will be populated instead of actionID

OneSignal Cordova SDK version

5.2.6

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
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

1 participant