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

Notify event is not triggered when the application tab is inactive or the browser is minimized #125

Open
shubhamdhere621 opened this issue Sep 25, 2023 · 4 comments

Comments

@shubhamdhere621
Copy link

Bug Report or Feature Request (mark with an x)


[ ] Bug report -> please search issues before submitting
[ ] Feature request
[ ] Documentation issue or request

Current behavior

when we minimize the browser or inactive tab of application, then notify event does not trigger.
https://stackblitz.com/edit/ngx-countdown-setup-nglzm2?file=src%2Fmain.ts,src%2Findex.html

Expected behavior

It should trigger notify event at a time even if we change the tab or minimize the browser.

Environment


Angular version: 14.1.0

ngx-countdown version: 12.0.1
@shubhamdhere621 shubhamdhere621 changed the title Notify event is not triggered when the application tab is active or the browser is minimized Notify event is not triggered when the application tab is inactive or the browser is minimized Sep 25, 2023
@cipchk
Copy link
Owner

cipchk commented Sep 25, 2023

I did not reproduce in Demo, whether the tab is inactive tab or the browser is minimized.

My chrome version: 版本 116.0.5845.187(正式版本) (x86_64)

@shubhamdhere621
Copy link
Author

I have reproduced issue in this demo
https://screenrec.com/share/q1t2Ur7Fax

@shubhamdhere621
Copy link
Author

@cipchk Did you get a demo video link? Please confirm whether you got.

@cipchk
Copy link
Owner

cipchk commented Oct 16, 2023

@shubhamdhere621
Sorry, I just took vacation.

This happens for For Background Tasks (non-UI related), and it looks like it can only be solved using HTML5 Web Workers. Here are some related articles:

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

No branches or pull requests

2 participants