Notification
-
I have a personalized order page that updates every 4 minutes to show new orders that have arrived an audible alert is issued to alert the seller. see the code:
if ( in_array( dokan_get_prop( $order, 'status' ), array( 'pending', 'on-hold' ) ) ) { $actions['processing'] = array( 'url' => wp_nonce_url( admin_url( 'admin-ajax.php?action=dokan-mark-order-processing&order_id=' . dokan_get_prop( $order, 'id' ) ), 'dokan-mark-order-processing' ), 'name' => __( 'Processing', 'dokan-lite' ), 'action' => "processing", 'icon' => '<i class="fa fa-clock-o"> </i><audio class="player" playsinline controls loop autoplay > <source src="https://mysite.com/wp-content/uploads/2020/10/140432912.mp3" type="audio/mp3" > </audio>' ); }
But this method when the browser gets stuck after 2 hours of inactivity on the page it stops working.
I need a method that works 100%, like a pop-up window or push notification on the desktop. Is there a way to provide push notification to the logged in user when a class is active on the page?
need help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Notification’ is closed to new replies.