A Cordova plugin for adding Google Firebase Cloud Messaging push notifications to hybrid mobile apps.
cordova-plugin-fcm is a Cordova plugin that integrates Google Firebase Cloud Messaging (FCM) to enable push notifications in hybrid mobile applications built with Cordova. It simplifies the process of sending and receiving notifications across Android and iOS platforms by providing a unified JavaScript API and handling native configuration automatically.
Cordova and PhoneGap developers building hybrid mobile apps for Android and iOS who need to implement reliable push notifications without deep native platform knowledge.
Developers choose this plugin for its minimal setup—requiring only the addition of Firebase config files—and its comprehensive feature set covering token management, topic subscriptions, and foreground/background notification handling, all through a simple JavaScript interface.
Google FCM Push Notifications Cordova Plugin
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically copies 'google-services.json' and 'GoogleService-Info.plist' to platform folders during build, eliminating manual configuration steps as highlighted in the installation section.
Provides a consistent API for both Android and iOS, handling token management, topic subscriptions, and notification callbacks through simple functions like onTokenRefresh and onNotification.
Includes a free testing server at https://cordova-plugin-fcm.appspot.com for quick notification testing without backend setup, mentioned in the README as a key feature.
Correctly delivers notification data with a 'wasTapped' flag to distinguish user interactions, whether the app is in foreground or background, as detailed in the usage examples.
Last updated in 2017 (version 2.1.2) and tested with old Cordova versions (e.g., CLI 6.4.0), making it potentially incompatible with current Cordova, Firebase SDKs, or platform APIs.
Only supports basic FCM functions like token refresh and topics, lacking newer features such as analytics integration, notification channels for Android, or advanced targeting options.
Requires manually adding a custom icon 'fcm_push_icon.png' for Android >5.0, an extra setup step that isn't fully automated and can cause issues if overlooked.