[英]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 中被正确接收。
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 已收到您的消息,并将尝试将其传递给用户。
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 ,它将无法执行此操作。
You just need to generate an auth token.您只需要生成一个授权令牌。 This guide should help you set it up.本指南应该可以帮助您进行设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.