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.

Can I run code when notification appears?

See original GitHub issue

In my case, and I have only tested with scheduled notifications, it seems that onNotification only fires when I open the app from the notification. I want to trigger some actions when the app is killed or on the background following a certain schedule.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
npomfretcommented, Oct 12, 2016

Oops, sorry - pressed the wrong button.

1reaction
nonameolssoncommented, Sep 7, 2017

Hi! It seems like this is stlil an issue. Has there been any progress on this? #170 check my latest comment in that thread please. And keep up the good work! @zo0r

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to run some code when a local notification is ...
I think there is no way you can know when your local notification is sent out mainly because you can schedule your local...
Read more >
Notifications - Business Central - Microsoft Learn
A LocalScope notification appears in context of the user's current task, that is, on the page the user is currently working on. LocalScope...
Read more >
Notifications | Visual Studio Code Extension API
Notifications display brief information that is surfaced from the bottom right of VS Code. Example of a notification. You can send three types...
Read more >
Notification behavior - web.dev
Each new notification is shown one after the other. The browser will not collapse the notifications in any way. The platform may play...
Read more >
How to make PWAs re-engageable using Notifications and Push
They work outside of the browser window, just like service workers, so updates can be pushed and notifications can be shown when the...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found