WordPress-iOS
WordPress-iOS copied to clipboard
Duplicated event tracking for 'push_notification_alert_tapped' when the push notification alert is tapped
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
- Run Jetpack and login into your account.
- Send a push notification to the device while the app is running in the background.
- Tap the push notification alert once it appears.
- 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
Thanks for reporting! 👍