Closed jornicornelese closed 6 months ago
When I run this code (also on macOS 14, Laravel 10), the notification shows fine. So I think the problem isn't in NativePHP, but on your system
There are a few things to check:
If they're 'Off' (as demonstrated above), please turn them on (as demonstrated below) and try again.
If so, please turn it off and try again.
Do Not Disturb will suppress most notifications (except those explicitly allowed during DND):
If you're still having issues, please let me know.
@jornicornelese I'm going to close this issue for now. If you still haven't been able to figure out the cause of your troubles after trying the above, feel free to re-open with more details.
What were you trying to do?
I created a job in which I have a notification. I'm trying to trigger it within the scheduler using:
$schedule->job(MyNotification::class)->everyMinute();
Or trigger it within tinker using DispatchSync.
To test that my Job works I used a DD as well, which does trigger, but the notification won't.
The notification does trigger when used within the NativeAppServiceProvider.
What happened?
I expected the Notification to trigger, but nothing pops up.
How to reproduce the bug
Here is my Job:
Package Versions
"nativephp/electron": "0.6.1", "nativephp/laravel":"0.5.0", "nativephp/php-bin": "0.4.0"
PHP Version
v8.2.18
Laravel Version
v10.48.10
Node Version
v18.15
Which operating systems have you seen this occur on?
macOS
OS version
14.2.1 (23C71)
Notes
No response