Category : notifications

I created a laravel notification class with php artisan make:notification NewUserNotification class NewUserNotification extends Notification { use Queueable; protected $cost; private $order_id; /** * Create a new notification instance. * * @return void */ public function __construct($cost, $order_id) { $this->cost = $cost; $this->order_id = $order_id; } /** * Get the notification’s delivery channels. * * ..

Read more

$getdata = $this->patientVital->getNotificationResult(); if (!empty($getdata)) { if (!empty($getdata[‘daily’])) { foreach ($getdata[‘daily’] as $value) { foreach ($value[‘reminder_time’] as $reminder_time) { $time = strtotime(preg_replace(‘/s+/’, ”, $reminder_time[‘time’])); if ($time == strtotime($current_time) && $reminder_time[‘is_reminder_selected’] == ‘true’) { $this->fireFCMNotification($getdata); } } } Sourc..

Read more

I’m new to Firebase cloud messaging with Laravel, Thanks to this code https://www.itsolutionstuff.com/post/laravel-firebase-push-notification-tutorialexample.html I was able to send notifications from my Firebase to my Android device by token using curl. But, Is there any API or way to send a notification to all devices? Sourc..

Read more

I’m using the web push php library to implement web push notifications: https://github.com/web-push-libs/web-push-php/ I have managed to so far sent a notification and the client will successfully receive it, however the payload always arrives empty in the browser. I would be expecting some custom data event.data object but it is always null. Below is the ..

Read more

There are only 4 products on the site. Products are uncategories and without attributes. But I can create. When buying each of them, the buyer should receive a letter with unique content, regardless of the buyer’s mail. Sending a letter should be based on the purchase of a product_ID, or category_ID, or attribute. The notofications ..

Read more

I want tp apply queue for my Notifications, so I implemented that at my Notification which ResetPassword: class ResetPassword extends Notification implements ShouldQueue Then I ran php artisan queue:table and migrate it so the table jobs created successfully at the DB. And also change the QUEUE_CONNECTION to database at .env file and re-run php artisan ..

Read more