Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS OnNotificationOpened not firing from terminated app? - here's why

See original GitHub issue

Just a heads up - I was trying to figure out why OnNotificationOpened wasn’t being fired when the app was being launched from a push notification (i.e the app is terminated, and you launch it by tapping on a notification). It turns out it was because there is core code commented out in this library’s source:


As soon as I uncommented this - everything works on iOS as expected!

Would love an explanation as to why this is commented out…

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

mimunozcommented, May 19, 2020

@rdelrosario can you explain please?

rdelrosariocommented, May 29, 2020

Actually I will update the code over the weekend uncommenting this and working with other needed fixes.

The reason this was commented was because at some point didn’t seem to be needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`onNotificationOpened` not being called when app is killed ...
1 Answer 1 · You can not force close the app by double tapping the home button and swiping away your app. ·...
Read more >
Waking up an iOS app after app is
Both are working fine so far. But for some users, who are terminating our app from App Switcher, it is somehow not working....
Read more >
Push Notifications - Interact with notifications - React Native
When your app is launched from a terminated state, you must call getLaunchNotification to obtain the notification which launched your app.
Read more >
React Native + Firebase Part 2: How to Manage Push ...
The app is not in memory at all due to being involuntarily terminated, ... See here for more information from the official Firebase...
Read more >
Implementing Push Notifications in Flutter
Background: When the app is open but in the background (minimized). Terminated: When the device is locked or the app is not running....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found