简体   繁体   English

FCM-通过设备令牌和环境/组发送android推送通知

[英]FCM - Sending android push notifications by device tokens and environment/group

I would like to implement a method in which android push notifications through FCM are sent by both specific device tokens and an environment/group. 我想实现,其中通过FCM机器人推送通知由两个特定设备令牌和一个环境/组发送的方法。

Just like there are two environments which needed to be implemented for sending iOS push notifications through APNS (sandbox & production), I would like to do the same using FCM. 就像有两种环境需要通过APNS(沙盒和产品)发送iOS推送通知一样,我想使用FCM进行相同的操作。

Any suggestions? 有什么建议么?

Thanks in advance. 提前致谢。

For setup FCM push notification just goto Firebase Console then add project and setup other settings for environments. 对于设置FCM推送通知,只需转到Firebase控制台,然后添加项目并为环境设置其他设置。 Then goto cloud messaging tab and you will fine "server key" and "sender id". 然后转到云消息传递选项卡,您将对“服务器密钥”和“发件人ID”进行罚款。 You need to share this with server side developer. 您需要与服务器端开发人员共享此内容。 From server side need to handle push notification for specific device tokens and an environment/group. 从服务器端需要处理特定设备令牌和环境/组的推送通知。

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

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