question-mark
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.

Notification Event Callbacks are not Firing on iOS

See original GitHub issue

Thanks for picking up the task of being the only free and maintained PN library for react-native 🙏

react-native: 61.0 react-native-notifications: 3.1.4

I have followed the installation instructions exactly as outlined, and have picked up a few additional snippets from other github issues that have helped me get to a perfectly functioning Android implementation for foreground, background (warm) and background (cold) notifications.

Im having some issues on iOS though, namely none of the native event callbacks are firing: registerNotificationOpened registerNotificationReceivedBackground registerNotificationReceivedForeground

I am receiving push notifications on iOS and when I press the notification banner, none of those callbacks are triggered.

It may be worth noting that getInitialNotification is working on iOS.

I’ve searched every issue and am at a loss. Any ideas what I may have improperly configured, or is anyone else experiencing this?

I’m using firebase to send the actual remote notifications.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:16
  • Comments:52 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
rynpatkcommented, Aug 12, 2020

go away stalebot

7reactions
AlexD10Scommented, Apr 10, 2020

I am having the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS Notifications: callbacks not called - Stack Overflow
I'm implenting a reminder feature for an app through local notifications. The user will setup times and repetition intervals and the app will ......
Read more >
Notifications Not Shown - Mobile Push
Common reasons why Mobile Push notifications are not showing on your device.
Read more >
Events | Maps JavaScript API - Google Developers
This page describes the user interface events and error events that you can listen for and handle programmatically. User Interface Events.
Read more >
ServiceWorkerGlobalScope: notificationclick event - Web APIs
The notificationclick event is fired to indicate that a system ... other than an action button, or the notification does not have a...
Read more >
[Solved]-notification.confirm callback not firing phonegap iOS
Coding example for the question notification.confirm callback not firing phonegap ... try { var toConfirm = navigator.notification.confirm("You don't have a ...
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 Hashnode Post

No results found