Skip to main content
Firebase
Build
  • Build
  • Get to market quickly and securely with products that can scale globally
  • Go to Build
  • Build Products
  • App Check
  • App Hosting
  • Authentication
  • Cloud Functions
  • Cloud Storage
  • Data Connect
  • Extensions
  • Firebase ML
  • Firestore
  • Genkit
  • Hosting
  • Realtime Database
  • Firebase AI Logic client SDKs
  • Generative AI
Run
  • Run
  • Run your app with confidence and deliver the best experience for your users
  • Go to Run
  • Run Products
  • A/B Testing
  • App Distribution
  • Cloud Messaging
  • Crashlytics
  • Google Analytics
  • In-App Messaging
  • Performance Monitoring
  • Remote Config
  • Test Lab
Solutions Pricing Docs
  • Overview
  • Fundamentals
  • AI
  • Build
  • Run
  • Reference
  • Samples
Support
/
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
Blog Studio Go to console
  • Documentation
  • JavaScript API reference
Firebase
  • Build
    • More
  • Run
    • More
  • Solutions
  • Pricing
  • Docs
    • More
  • Support
  • Blog
  • Studio
  • Go to console
  • Build
  • Go to Build
  • Build Products
  • App Check
  • App Hosting
  • Authentication
  • Cloud Functions
  • Cloud Storage
  • Data Connect
  • Extensions
  • Firebase ML
  • Firestore
  • Genkit
  • Hosting
  • Realtime Database
  • Firebase AI Logic client SDKs
  • Generative AI
  • Run
  • Go to Run
  • Run Products
  • A/B Testing
  • App Distribution
  • Cloud Messaging
  • Crashlytics
  • Google Analytics
  • In-App Messaging
  • Performance Monitoring
  • Remote Config
  • Test Lab
  • Overview
  • Fundamentals
  • AI
  • Build
  • Run
  • Reference
  • Samples
  • Firebase
  • Documentation
  • JavaScript API reference

messaging package

The Firebase Cloud Messaging Web SDK. This SDK does not work in a Node.js environment.

Entry Point Description
/
/sw

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-06-08 UTC.

  • Learn

    • Guides
    • Reference
    • Samples
    • Libraries
    • GitHub
  • Stay connected

    • Blog
    • Firebase Summit
    • Twitter
    • YouTube
  • Support

    • Contact support
    • Stack Overflow
    • Google Group
    • Release notes
    • FAQs
    • Legacy documentation
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms
  • Privacy
  • ICP证合字B2-20070004号
  • Manage cookies
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어