简体   繁体   English

如何确保 firebase 已经收到应用服务器发送的推送通知,没有 android 应用程序

[英]How to ensure firebase has received push notification sent from app server, without android app

I am new with Firebase. I want to send push notifications to an android app from a spring application.我是 Firebase 的新手。我想从 spring 应用程序向 android 应用程序发送推送通知。 At preset I dont have an android app.在预设情况下,我没有 android 应用程序。 I want to test whether the firebase integration is correct or not, which means I want to make sure that the push notifications sent from the backend server are recieved correctly in firebase.我想测试 firebase 集成是否正确,这意味着我想确保从后端服务器发送的推送通知在 firebase 中被正确接收。

  1. How do I ensure that firebase has recieved the push notifications sent from backend server?如何确保 firebase 已经收到后端服务器发送的推送通知?
  2. Is it possible to test push notifications without an android app registered on firebase?如果没有在 firebase 上注册的 android 应用程序,是否可以测试推送通知? If yes, how do I do that?如果是,我该怎么做?
  3. I am using Firebase Admin SDK. Do I need a separate server key other than the service account key for sending notifications?我正在使用 Firebase Admin SDK。除了服务帐户密钥之外,我是否需要单独的服务器密钥来发送通知?
  1. You'll get a success (or fail) response when sending messages.发送消息时,您将获得成功(或失败)响应。 This means that FCM has received your message and it will try to deliver it to the users.这意味着 FCM 已收到您的消息,并将尝试将其传递给用户。

  2. FCM needs to target your app in order to send notification. FCM 需要定位您的应用才能发送通知。 If you don'tset up FCM SDK in your app, it wont be able to do so.如果您不在您的应用中设置 FCM SDK ,它将无法执行此操作。

  3. You just need to generate an auth token.您只需要生成一个授权令牌。 This guide should help you set it up.指南应该可以帮助您进行设置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未收到通过 iOS 应用程序中的 firebase 云功能发送的推送通知,尽管我从消息控制台获取 - Not receiving push notification sent via firebase cloud functions in iOS app though I get the from messaging console firebase 推送通知声音在 android 工作室中的 android 应用程序上不起作用 - firebase push notification sound not working on android app in android studio 应用程序被终止时,设备未收到推送通知 - push notification not received to devices when app is killed firebase 推送通知在某些设备 (Android) 中被杀死的应用程序不起作用 state - firebase push notification is not working on app killed state in some devices (Android) 如何在收到通知且应用程序处于后台时调用 android 中的另一个活动 - How to call another activity in android when notification received and app is in background 通知已成功发送,但未从 Firebase 在 Android 中接收 - Notification sent successfully but not reveiving in Android from Firebase 在 Kotlin 客户端应用程序中发送 FCM 推送通知 - Firebase 云消息传递 - Sending FCM Push Notification in Kotlin Client App - Firebase Cloud Messaging Flutter Firebase 消息 - 应用打开时不显示推送通知 - Flutter Firebase messaging - push notification is not showing when app is open ASP.Net Firebase 消息传递 Web 推送:如何知道客户端是否实际收到推送通知? - ASP.Net Firebase Messaging Web Push: how to know if a client actually received a push notification? 从用户应用程序向管理应用程序发送推送通知 - Flutter - Send Push notification from user app to admin app - Flutter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM