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

open_notification event not being triggered when app is not in background. #8128

Closed
khuffie opened this issue May 20, 2021 · 2 comments · Fixed by #8129
Closed

open_notification event not being triggered when app is not in background. #8128

khuffie opened this issue May 20, 2021 · 2 comments · Fixed by #8129
Assignees

Comments

@khuffie
Copy link

khuffie commented May 20, 2021

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.5
  • Firebase SDK version: 8.0.0
  • Installation method: SPM
  • Firebase Component: Messaging

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

  1. Force quit the app
  2. Send a push notification to the app
  3. Tap on the push notification
  4. 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 5 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.

Note that we recently updated to v8.0.0. However, we saw the same issue in the previous version of the SDK which was manually integrated.

@charlotteliang
Copy link
Contributor

@khuffie Thank you for filing the issue. Please remind me again if you are using Unity/C++ or just iOS SDK?

If it's iOS SDK, do you have - (void)userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler: implemented as mentioned in our guide.

@khuffie
Copy link
Author

khuffie commented May 20, 2021

@chliangGoogle we are using just the iOS SDK. We have a native Swift app.

And yep, we do implement that method as described.

Additional context: we send additional metadata with the push to deeplink users to specific sections of the app. Even in the cold start scenario, the deeplinking logic works as expected. It's just that the event isn't triggered so our open rate is completely off.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants