Description
What were you trying to do?
i am trying to refresh menubar-label periodically using my internal logic
What happened?
menubar-label refreshes itself only when open is visible. when window is hidden then label refreshes itself rarely without any predictable logic
How to reproduce the bug
project and screencast in the attachments. installed dependencies are removed.
-
run:
composer install
npm install
-
run the project
php artisan native:serve
-
open app window using
menubar-icon
, navigate toLogin-page
-
menubar-label
will show Date::now() periodically in 1 sec -
hide window using
menubar-icon
-
menubar-label
stops refreshing, in some different periods it refreshes itself, but using non-predictable periods -
also can be checked
laravel.log
to see log-records per each second of refreshingmenubar-label
:
tail -f menubar-demo-app/storage/logs/laravel.log
Package Versions
"require": {
"php": "^8.2",
"laravel/framework": "^11.0",
"laravel/tinker": "^2.10.1",
"livewire/flux": "^2.0",
"livewire/volt": "^1.6.7",
"nativephp/electron": "^0.9.0"
},
PHP Version
8.3.16
Laravel Version
11.44.1
Node Version
22.13.1
Which operating systems have you seen this occur on?
macOS
OS version
macos 15.3.1
Notes
screencast: https://drive.google.com/file/d/1t_OJU4QyZ20QrqS2uINnnglQtbZNk5_i/view?usp=sharing
project: menubar-demo-app.zip