cipchk / ngx-countdown

Simple, easy and performance countdown for angular
https://cipchk.github.io/ngx-countdown/
MIT License
192 stars 57 forks source link

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

Open shubhamdhere621 opened 12 months ago

shubhamdhere621 commented 12 months ago

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
cipchk commented 12 months ago

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 commented 12 months ago

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

shubhamdhere621 commented 11 months ago

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

cipchk commented 11 months ago

@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: