简体   繁体   English

使用Firebase为Cordova项目实施推送通知

[英]implementing push notifications for Cordova project with Firebase

I have a Cordova app and I'm trying to implement Push Notifications feature for it. 我有一个Cordova应用程序,我正在尝试为其实现推送通知功能。 My idea is to use FCM (Firebase Cloud Messaging). 我的想法是使用FCM(Firebase云消息传递)。 I was able to implement it for a sample native Android application. 我能够为示例本地Android应用程序实现它。 How do I do it for this Cordova App? 我该如何使用此Cordova应用程序呢?

I am currently investigating Firebase Cloud Messaging Cordova Push Plugin which looks promising. 我目前正在研究Firebase Cloud Messaging Cordova Push Plugin ,它看起来很有前途。

In short: 简而言之:

Extremely easy plug&play push notification plugin for Cordova applications and FCM. 适用于Cordova应用程序和FCM的极其简单的即插即用推送通知插件。

It allow: 它允许:

  • Subscribe/unSubscribe to/from topic 订阅/取消订阅主题/从主题
  • Receiving push notification data 接收推送通知数据
  • Send notification 发送通知

Will update later my findings. 稍后将更新我的发现。

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

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