WordPress-iOS icon indicating copy to clipboard operation
WordPress-iOS copied to clipboard

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

Open salimbraksa opened this issue 10 months ago • 1 comments

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

salimbraksa avatar Apr 02 '24 03:04 salimbraksa

Thanks for reporting! 👍

dangermattic avatar Apr 02 '24 03:04 dangermattic