-
Hello, What i did
NOTE: What i geta) added What i expectedthat my Livewire-component will work ONLY using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 You should use the Laravel Scheduler. Here's an example in a NativePHP app based on Laravel 10. Hope that helps 😊 |
Beta Was this translation helpful? Give feedback.
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 wherewire:poll
is running.You should use the Laravel Scheduler. Here's an example in a NativePHP app based on Laravel 10.
Hope that helps 😊