简体   繁体   English

向特定Google用户发送FCM消息而无需安装应用程序?

[英]Send FCM message to specific Google user without need to install an app?

I'm doing a tiny personal project involving an Arduino and a PHP backend. 我正在做一个涉及Arduino和PHP后端的小型个人项目。 I want to send a push notification from the PHP backend to my Android phone using Firebase Cloud Messaging. 我想使用Firebase Cloud Messaging从PHP后端向我的Android手机发送推送通知。 This question is specifically about FCM - I don't want to use any other services like Blynk, etc. I also do not want to send the notification directly from the Arduino, but rather from the PHP backend. 这个问题专门针对FCM - 我不想使用像Blynk等其他任何服务。我也不想直接从Arduino发送通知,而是从PHP后端发送通知。

Can I send a FCM notification to my phone without having to create an app to receive it? 我是否可以向手机发送FCM通知,而无需创建应用程序来接收它? I'm logged in with a Google/Gmail account on the phone, and I have no need to target any other users than myself. 我已在手机上使用Google / Gmail帐户登录,而且我无需定位除我之外的任何其他用户。

Can I send a FCM notification to my phone without having to create an app to receive it? 我是否可以向手机发送FCM通知,而无需创建应用程序来接收它?

No, this is not possible. 不,这是不可能的。 It would open users up to some pretty hefty abuse. 它会让用户受到一些非常大的滥用。

In order to receive your notifications, the user must have your app installed. 要接收通知,用户必须安装您的应用。

Mind you, this can be a pretty minimal app, since the default implementation of FCM already displays notifications to the user if the app is not active. 请注意,这可能是一个非常小的应用程序,因为如果应用程序未处于活动状态,FCM的默认实现已经向用户显示通知。 So really all you have to do is create an empty app that includes the Firebase Cloud Messaging SDK. 因此,您真正需要做的就是创建一个包含Firebase Cloud Messaging SDK的空应用程序。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM