Skip to content

How MenuBar works when it closed? #213

Answered by simonhamp
lon9man asked this question in Q&A
Discussion options

You must be logged in to vote

It sounds like you're trying to have a persistent repeating task running without requiring any windows to be open.

For that, you shouldn't rely on the web view Javascript (which is what wire:poll uses), as it's only going to be available to execute if there's a window open on the page where wire:poll is running.

You should use the Laravel Scheduler. Here's an example in a NativePHP app based on Laravel 10.

Hope that helps 😊

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lon9man
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants