如何根据flutter应用程序中的其他用户操作自动向用户自动推送通知?
我正在制作flutter的应用程序,在那里有影响力的人可以竞标工作,雇主可以雇用或拒绝他们。每当雇主收到出价和影响者时,我都需要向雇主发送推送通知。 我需要像其他应用程序一样自动化此过程。 我该怎么做? 有影响力的人和雇主都将使用同一应用程序作为影响者或雇主登录的同一应用。
I am working on an app in Flutter where an influencer can bid for jobs and the employer can either hire or reject them. I need to send push notifications to the employer whenever he receives a bid and to the influencer whenever he is hired or rejected.
I need to automate this process like in other apps.
How can I do this?
Both Influencer and Employer will be using the same app where they will log in as an influencer or Employer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用firebase云消息fcm firebase cloud cloud Messaging
它做什么,在Flutter应用程序中获取该设备的FCM令牌,并将其保存在后端MySQL数据库中或任何其他数据库中,无论有影响力的竞标》通常您会抓取并将该信息发送到该信息时后端供电该应用程序,因此将投标保存在数据库中后,下一步您抓住了要通知的用户的设备FCM令牌,您可以抓住一个FCM令牌,或者您想要的数量,并通过它们循环并发送一个通过使用Curl调用Firebase项目的通知,例如使用PHP
请参阅此答案我如何发送firebase云消息通知
You have to use Firebase cloud messaging FCM Firebase Cloud Messaging
What does it do, in the flutter app get the FCM token of that device and save it somewhere in the backend MySQL database for example or any other database, when ever an influencer bid usually you grab and send that information to the backend that power the app, so after saving the bid in the database, next step you grab the device FCM token of the user you want to notify, you can grab one FCM token or as many as you want and loop through them and send a notification to the device by calling the Firebase project using CURL for example with PHP
see this answer How can I send a Firebase Cloud Messaging notification