每当数据库颤动发生变化时,推送通知

发布于 2025-02-13 04:46:54 字数 218 浏览 0 评论 0 原文

我使用 api (laravel)从我的数据库中获取一些数据(产品列表),然后在我的应用中显示它们。

我的应用中有一个表单,我可以在其中添加新产品信息并将其添加到数据库中。

我想要每当添加新产品时,该应用都会向所有用户发送推送通知

有办法做到吗?

I'm getting some data (Product list) from my Database using API (Laravel) and show them inside my app.

I have a form in my app where I can add a new product information and add it to the database .

I want whenever there is a new product added, the app sends a push notification to all the users.

Is there a way to do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

望笑 2025-02-20 04:46:54

首先,您必须使用诸如Firebase之类的通知服务配置服务器零件(Laravel)。

然后,每当数据更改时,连接并接收通知。

First you have to configure your server part(laravel) with a notification service like firebase.

and after, connect and receive a notification whenever the data changes.

you can click here for reference

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文