firebase-ios-sdk
firebase-ios-sdk copied to clipboard
open_notification event not being triggered when app is not in background
Before this gets flagged as a duplicate of #8128, we have updated to the new version of Firebase SDK that includes this resolution and the issue still exists.
[REQUIRED] Step 1: Describe your environment
- Xcode version: 12.5
- Firebase SDK version: 8.2.0
- Installation method: SPM
- Firebase Component: Messaging
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
- Force quit the app
- Send a push notification to the app
- Tap on the push notification
- Observe Debug View
- Expected: notification_open event gets triggered
- Actual: No notification_event gets triggered
We are noticing that iOS is severely undercounting the push notification open rate. On Android, our open rate is around 12%. On iOS, our open rate is around 0.29%. However, evidence suggests that users ARE receiving push notifications and opening them on iOS (we see similar surges in traffic as Android), but just that the notification_open event is not getting triggered.
We have confirmed that swizzling is ON.
We have tested the following scenarios, each 10 times, and each reproduced 100%
App is in the background, notification is received, notification_open is triggered App is closed, notification is received, notification_open is NOT triggered App is open in foreground, notification is received, notification_foreground is triggered correctly We are monitoring the events via the DebugView.
We have been unable to see opens in the notifications funnel, with swizzling OFF. We are sending parallel events that tell us the opens are happening though.
It used to be able to log opens somewhere around v7.1.0 (Firebase Unity), but upon upgrading to v9.1.0, we get 0 logged opens, out of 100s of millions of sends.
Is this somewhat intentional? I must ask because the docs do state about logging "Opens – The user opened the notification message. Reported only for notifications received when the app is in the background."
– which of course tends to be a rare case... but I mean, it shouldn't be zero out of billions...
I'm facing the same issue, with swizzling OFF and reporting it manually with Messaging.messaging().appDidReceiveMessage(userInfo)
. We are getting 0 opens.
Hello, I'm also using 9.1.0 version of Firebase Cloud Messaging Unity, and I can confirm that we don't get any notification_open events from iOS ( Android seems fine ). Has this issue been fixed in most recent versions?