mysql - 如何使用 Spring Boot Rest API 在移动应用程序(React Native 或 Ionic)中获取推送通知

标签 mysql spring-boot react-native

我正在尝试使用 Spring Boot 服务器和 MySQL 数据库在 React-Native 中创建推送通知。

我想知道如何设置我的 Spring Boot Rest API,以便能够将推送通知发送到使用 React-Native 编码的前端。我可以使用任何技术来实现这一目标吗?或者如何在 Spring Boot 中编码?

最佳答案

您可以使用 Google 的 Firebase 推送通知 (FCM) 来实现相同的目的。

浏览以下文章,它提供了 Spring Boot 作为后端和前端作为 React Native 的所有信息,

https://grokonez.com/spring-framework/spring-boot/firebase-cloud-messaging-server-spring-to-push-notification-example-spring-boot

https://medium.com/@anum.amin/react-native-integrating-push-notifications-using-fcm-349fff071591

关于mysql - 如何使用 Spring Boot Rest API 在移动应用程序(React Native 或 Ionic)中获取推送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54740605/

相关文章:

php - 隔离php访问其他mysql数据库

php - 在表的单列中插入动态多个值

java - @JsonCreator 不适用于 Spring MVC 中的 @RequestParams

java - 从 Spring REST API 返回 HTTP 代码 200

react-native - 我应该使用哪个 react native 库来访问本地存储在 Android 上的音乐文件

找不到 MySQL 文件或目录 ODBC

php - MySQL 内部 for 循环。插入仅在第一个循环上运行

java - Maven创建2个归档文件

React-Native:无法从我的 android 应用程序打开设备设置

javascript - 如何在React Native应用程序中使用React hook useEffect设置每5秒渲染一次的间隔?