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

Duplicated event tracking for 'push_notification_alert_tapped' when the push notification alert is tapped #22935

Open
salimbraksa opened this issue Apr 2, 2024 · 1 comment

Comments

@salimbraksa
Copy link
Contributor

Expected behavior

  • Track push_notification_received when the push notification is received, whether app is in foreground or background.
  • Track push_notification_alert_tapped only when the push alert is tapped.

Actual behavior

  • The event push_notification_received is tracked when the push notification is received and the app is in background.
  • Track push_notification_alert_tapped when:
    • App receives a push notification in foreground.
    • User taps the push notification alert. And in this case, the event is actually tracked twice.

Steps to reproduce the behavior

  1. Run Jetpack and login into your account.
  2. Send a push notification to the device while the app is running in the background.
  3. Tap the push notification alert once it appears.
  4. Verify if the push_notification_alert_tapped event is tracked twice.
Tested on iPhone 14 Pro Max, iOS 17, Jetpack iOS / WordPress iOS 24.5
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

2 participants