【问题标题】:How do i send notification from Springboot using Firebase In App Messaging?如何使用 Firebase In App Messaging 从 Springboot 发送通知?
【发布时间】:2021-05-12 07:26:00
【问题描述】:

我想使用 Firebase In App Messaging 从 Spring Boot 发送通知。我已经使用了 firebase 云消息传递,但在 firebase In App Messaging 中遇到了困难。

请提供一些源代码或其他建议,例如 Spring boot builder() 方法或其他方法来解决此问题。

【问题讨论】:

    标签: firebase spring-boot push-notification firebase-cloud-messaging spring-boot-gradle-plugin


    【解决方案1】:

    Firebase 支持使用 HTTP 协议发送通知,您可以使用 RestTemplate 调用 HTTP 请求到 FirestBase 服务器(参考:https://firebase.google.com/docs/cloud-messaging/migrate-v1)。或者使用 API firebase for java https://firebase.google.com/docs/cloud-messaging/send-message#java

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-12
      • 1970-01-01
      • 2019-02-10
      • 1970-01-01
      • 1970-01-01
      • 2022-12-14
      • 2017-01-05
      相关资源
      最近更新 更多