mysql - 如何使用 Spring Boot Rest API 在移动应用程序(React Native 或 Ionic)中获取推送通知
问题描述
我正在尝试使用 Spring Boot 服务器和 MySQL 数据库在 React-Native 中创建推送通知。
我想知道如何设置我的 Spring Boot Rest API 以便能够将推送通知发送到使用 React-Native 编码的前端。有什么技术可以用来实现吗?或者如何在 Spring Boot 中对其进行编码?
解决方案
您可以使用 google 的 Firebase 推送通知 (FCM) 来实现相同的目的。
浏览以下文章,它提供了 Spring Boot 作为后端和前端作为 React Native 的所有信息,
https://medium.com/@anum.amin/react-native-integrating-push-notifications-using-fcm-349fff071591
推荐阅读
- python - 给定两个二维点列表,如何为第一个列表中的每个点找到第二个列表中最近的点?
- flutter - 小部件构建或函数返回?
- delphi - 使用带有在设计时标记为活动的 TFDTable 组件的插入器类
- monitoring - histogram_quantile 未正确绘制多个标签
- excel - Excel 告诉我它无法访问我不希望它访问的文件
- c# - 从同一个 .exe 打开每个实例后,是否可以重命名进程(而不是程序名称)?
- ruby-on-rails - Ruby on Rails: Adding a new category within a blog post form, many-to-many associations and nested forms
- javascript - 如何在 JS 中每次单击时更改值?
- reactjs - 就我而言,如何将数据从子组件传递到父组件?
- powershell - Powershell 二进制 grep