如何发送推送通知? [英] How to send push notifications?

查看:68
本文介绍了如何发送推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个关注库存维护的项目,并且我们有一个名为工作单的操作。在此工作单操作中,管理员将选择所需的货物以组装产品并将相同的表格发送给库存管理员和工作分配的员工。我已经创建了网页表格,供管理员选择产品,当他点击发送请求按钮时,它将转到股票管理员登录,只有当股票管理员刷新他的表格中的请求标签时他才会知道已收到请求。而不是我希望在他登录页面时在导航选项卡上方显示一些通知。有人可以帮我吗?



我尝试过的事情:



我尝试了一些入站代码,以便在数据库受到影响时突出显示选项卡但仅在该特定页面上加载它即将到来。

I have created a project for stock maintenance in my concern and in that we have an operation called "work order". In this "work order" operation the admin person will select the required goods for assembling a product and send the same form to the stock-keeper and to the job assigned staff. I have created web-form for choosing the products by the admin and when he clicks the button"send request" it will go to the stock-keeper login and only if the stock keeper refreshes that "request" tab in his form he will know that the request has been received. Instead of that I want some notification kind of thing to be shown above the navigation tab when he logins his page. can some one please help me on the same??

What I have tried:

I have tried some inbound codes for highlighting the tab when a Database is affected but only on that particular page load it is coming.

推荐答案

引用:

如何发送推送通知?

简短回答,你不推送通知。



诀窍是让库存管理员自动检查更新。



在库存管理员方面,使用JavaScript并制定例程来检查在服务器上进行更新,设置一个计时器,每隔几秒左右启动例程。



JavaScript计时事件 [ ^ ]

JavaScript教程 [ ^ ]

Short answer, you don't push notifications.

The trick is to have stock-keeper to check for update automatically.

On stock-keeper side, use JavaScript and make a routine that check on server for an update, the set a timer to launch the routine every seconds or so.

JavaScript Timing Events[^]
JavaScript Tutorial[^]


这篇关于如何发送推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆